Plain webpack 4 boilerplate with Babel, SASS and lodash on board
You only need node.js pre-installed and you’re good to go.
If you don’t want to work with lodash, just remove it from the node packages and the webpack config.
Download to target directory or use this repository as a template
$ curl -L -o master.zip https://github.com/cvgellhorn/webpack-boilerplate/archive/master.zip && unzip master.zip && rm master.zip && mv ./webpack-boilerplate-master/{.,}* ./ && rm -r ./webpack-boilerplate-masterInstall dependencies
$ npm installBuild the app in dev mode and run the local webpack-dev-server with livereload and autocompile on http://0.0.0.0:8080/
$ npm run devBuild the app in production mode
$ npm run buildIf you're not familiar with webpack, the webpack-dev-server will serve the static files in your build folder and watch your source files for changes. When changes are made the bundle will be recompiled. This modified bundle is served from memory at the relative path specified in publicPath.