uglify at the end so we can also mangle names, and don't bother uglifying individual modules with -g as it doesn't seem to make any difference
This commit is contained in:
parent
877873e730
commit
eeb2dfd1fc
|
@ -13,11 +13,11 @@
|
||||||
"envify": "^3.4.0",
|
"envify": "^3.4.0",
|
||||||
"matrix-react-sdk": "../",
|
"matrix-react-sdk": "../",
|
||||||
"reactify": "^1.1.1",
|
"reactify": "^1.1.1",
|
||||||
"uglifyify": "^3.0.1",
|
"uglify-js": "^2.4.23",
|
||||||
"watchify": "^3.2.1"
|
"watchify": "^3.2.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "browserify -t [ envify --NODE_ENV production ] -t reactify -g uglifyify lib/index.js -o bundle.js",
|
"build": "browserify -t [ envify --NODE_ENV production ] -t reactify lib/index.js | uglifyjs -c -m -o bundle.js",
|
||||||
"start": "watchify -v -d -t reactify lib/index.js -o bundle.js"
|
"start": "watchify -v -d -t reactify lib/index.js -o bundle.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue