Skip to content

Instantly share code, notes, and snippets.

@masone
Last active November 8, 2017 09:18
Show Gist options
  • Save masone/ddda51b50e3236c4df790ee4fb4f5664 to your computer and use it in GitHub Desktop.
Save masone/ddda51b50e3236c4df790ee4fb4f5664 to your computer and use it in GitHub Desktop.
webpack.md

Webpack

webpack is a module bundler for the web

Demo

http://localhost:3333

Concepts

Entry, output, loaders, and plugins

Entry

Entry point (file) to build the dependency graph from

Output

Output defines where to emit the bundles and the naming

Loaders

Loaders describe to webpack how to process non-JavaScript modules

Examples

Plugins

Examples

Dive into details

Advanced features

Why should I use webpack again?

  • it’s becoming a standard for bundling frontend assets
  • nifty features, tons of loaders and plugins
  • great docs
  • speed up development (incremental build, hot reloading)
  • smaller bundles (only bundles what you actually use, code splitting, tree shaking)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment