Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created September 22, 2016 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/5a0c5dafab8414cbfd5d25f25dd2f5f4 to your computer and use it in GitHub Desktop.
Save zzarcon/5a0c5dafab8414cbfd5d25f25dd2f5f4 to your computer and use it in GitHub Desktop.
Simplest JS module bundler setup for Tree-shaking

Installation

$ npm i browserify rollupify rollup-plugin-node-resolve -D

Usage

$ node_modules/.bin/browserify -t [ rollupify --config browserify-rollup.config.js ] index.js > main.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment