Skip to content

this is an example project to demonstrate using rollupjs and it's tree-shaking capability

Notifications You must be signed in to change notification settings

paultman/rollupExampleProj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example rollupjs project to illustrate tree shaking

To run simply clone the repo, npm install, then npm run build.

> npm install
> npm run build

Open a browser to localhost:10001 to see the rendered webpage and look at the index.min.js file in the dist directory which includes only code used rather than all code in the required module.

See the blogpost at https://paultman.com/using-rollup-to-bundle-js-assets/

About

this is an example project to demonstrate using rollupjs and it's tree-shaking capability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published