Skip to content

stevenihan/js-webpack-tree-shaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of js + webpack 4 + tree-shaking

Prerequisites

  1. Install git
  2. Install nodejs

Build The Project

  1. Clone this repository
  2. run cd /path/to/this/folder
  3. run npm install
  4. run npm run build

Notes

  • Tree-shaking only applies to production mode / npm run build
  • You should not see the function of sapi & kuda in bundle.js

Webpack guides of tree-shaking

About

Example of js + webpack 4 + tree-shaking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published