Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bestguy/webpack-example

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack example

To run:

npm install
cd ./public/scripts
bower install
cd ../../
node app.js

Presentation notes below:

=

Webpack

Module bundler

http://webpack.github.io/


Alternative to require.js, Browserify, etc


Supports CommonJS, AMD (require.js), ES6 modules, and others


Extensible loader mechanism also supports

  • JSON
  • CSS/LESS/SASS
  • Images
  • HTML, Jade
  • Etc.

Designed to concat to single file

Also supports splitting application into async parts

Inspects entry point and finds all dependencies automatically


Development

Grunt/Gulp/etc Integration (Largely replaces most build and minification steps though)

webpack-dev-middleware


Some Pluses

  • Module format agnostic
  • Very simple to setup, use, watch, and and minify
  • Very extensible

Some Drawbacks

  • Need to be careful with automatic dependency finding
  • Doesn't work well with heavy use of dynamic requires
  • (Ex: Durandal view conventions, plugin config, etc.)

About

Webpack example showing features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.