Tree-shaking ES6 Modules in webpack 2
[http://jakewiesler.com/tree-shaking-es6-modules-in-webpack-2/]
- Tree-Shaking: It's the ability to only include code in your bundle that is being used
If you wonder why it’s called tree-shaking: think of your application as a dependency graph, this is a tree, and each export is a branch. So if you shake the tree, the dead branches will fall.
yarn install or npm install
npm run start
npm run build