#webpack-tutorial
This repo contains how to use webpack to make production ready build
Topics Covered:
- What is Webpack
- How to create a production ready bundle
- How to do code splitting
- How to do dead code elimination
- How to do tree shaking to remove dead code
- How to do hot module replacement (HMR)
- How to do hot/live reload
- How to use ES6/ES.next/ES2015 code in production with Babel
- How to load images
- How to load style (css)
- ...and more
# Clone this repo
git clone https://github.com/suwigyarathore/webpack-production.git
# Install dependencies
npm install
# Run for development
npm run dev
# go to http://localhost:8080
# Run for production
npm run build
State of Javascript
Webpack
- http://webpack.github.io
- http://webpack.github.io/docs/list-of-plugins.html
- http://webpack.github.io/docs/list-of-loaders.html
Webpack Dev Server
Plugins
- Extract Text
- HTML Webpack
- UglifyJS
- Define
Loaders
- babel-loader
- url-loader
- file-loader
- style-loader
- css-loader