Skip to content

Commit a72b814

Browse files
author
Pooya Parsa
committed
Minify bundles
1 parent 7abefc8 commit a72b814

File tree

3 files changed

+61
-259
lines changed

3 files changed

+61
-259
lines changed

build/rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const vue = require('rollup-plugin-vue');
44
const buble = require('rollup-plugin-buble');
55
const resolve = require('rollup-plugin-node-resolve');
66
const commonjs = require('rollup-plugin-commonjs');
7+
const uglify = require('rollup-plugin-uglify');
8+
import { minify } from 'uglify-js-harmony';
79
const CleanCSS = require('clean-css');
810
const {camelCase} = require('lodash');
911
const {name, dependencies} = require('../package.json');
@@ -32,7 +34,8 @@ module.exports = {
3234
}),
3335
buble(),
3436
resolve({external: ['vue']}),
35-
commonjs()
37+
commonjs(),
38+
uglify({}, minify)
3639
],
3740
globals: {
3841
tether: 'Tether'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"dependencies": {
3535
"bootstrap": "^4.0.0-alpha.6",
3636
"tether": "latest",
37+
"uglify-js-harmony": "^2.7.5",
3738
"vue": "^2.2.6"
3839
},
3940
"devDependencies": {

0 commit comments

Comments
 (0)