-
Install:
npm install -g webpack
ornpm install --save-dev webpack
-
Check version:
npm view webpack verion
-
Bundle:
webpack ./destinationSource ./bundleName
-
Use
-p
for production and-d
for development -
User
--watch
to watch file changes -
Link global Webpack to project
npm link webpack --save-dev
- HTML-webpack-Plugin
- style-loader: Creates style nodes from JS strings
- css-loader: Translates CSS into CommonJS
- sass-loader: Compiles Sass to CSS
- webpack-dev-server: Running on server and auto reload
- babel-loader, babel-core with babel-preset-react and babel-preset-es2015
- rimraf: Clean Folder