Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 676 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 676 Bytes

Webpack Hotplate

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

Roman Liutikov:

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.

Usage


First, install it:

yarn install or npm install

Then to test, before

npm run start

Next, to differentiate with the one above

npm run build