Skip to content

infantito/webpack2-tree-shaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published