Skip to content

Commit eeb2dfd

Browse files
committed
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
1 parent 877873e commit eeb2dfd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎example/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"envify": "^3.4.0",
1414
"matrix-react-sdk": "../",
1515
"reactify": "^1.1.1",
16-
"uglifyify": "^3.0.1",
16+
"uglify-js": "^2.4.23",
1717
"watchify": "^3.2.1"
1818
},
1919
"scripts": {
20-
"build": "browserify -t [ envify --NODE_ENV production ] -t reactify -g uglifyify lib/index.js -o bundle.js",
20+
"build": "browserify -t [ envify --NODE_ENV production ] -t reactify lib/index.js | uglifyjs -c -m -o bundle.js",
2121
"start": "watchify -v -d -t reactify lib/index.js -o bundle.js"
2222
}
2323
}

0 commit comments

Comments
 (0)