https://github.com/bestguy/webpack-example
Webpack example showing features.
https://github.com/bestguy/webpack-example
Last synced: 8 months ago
JSON representation
Webpack example showing features.
- Host: GitHub
- URL: https://github.com/bestguy/webpack-example
- Owner: bestguy
- Created: 2015-03-06T22:51:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T00:01:14.000Z (over 10 years ago)
- Last Synced: 2025-02-14T02:51:21.491Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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/](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.)
----