Skip to content

Instantly share code, notes, and snippets.

@Jeemusu
Last active May 17, 2016 06:29
Show Gist options
  • Save Jeemusu/3c796fc4985ca8892d994ff0f000608c to your computer and use it in GitHub Desktop.
Save Jeemusu/3c796fc4985ca8892d994ff0f000608c to your computer and use it in GitHub Desktop.
Rollup config for ES6 module bundling, transpiling to ES5 (Buble) and compression (Uglify).
//npm install rollup --global
//npm install --save-dev- rollup-plugin-buble
//npm install --save-dev- rollup-plugin-uglify
import buble from 'rollup-plugin-buble';
import uglify from 'rollup-plugin-uglify';
export default {
entry: 'src/main.js',
dest: 'dist/main.min.js',
plugins: [buble(), uglify()]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment