webpack

webpack

TLDR

Create a single output file from an entry point file

>_ webpack [app.js] [bundle.js]
copy

Load css files too from the js file (this uses the css loader for .css files)

>_ webpack [app.js] [bundle.js] --module-bind 'css=css'
copy

Pass a config file (with eg. the entry script and the output filename) and show compilation progress

>_ webpack --config [webpack.config.js] --progress
copy

Automatically recompile on changes to project files

>_ webpack --watch [app.js] [bundle.js]
copy

Copied to clipboard
free 100$ digital ocean credit