This project demonstrates how to do tree-shaking (removal of unused exports) with webpack 2 and Babel 6.
cd tree-shaking-demo/ npm install
There are two ways in which you can build and run the web app:
- Build once:
npm run build
- Watch files continuously, rebuild incrementally, whenever one of them changes:
npm run watch
build/index.html, manually reload page in browser whenever there was a change