Skip to content

Commit fc492ed

Browse files
committed
terser: specify 2 passes as it offers slightly better compression
1 parent fe73da9 commit fc492ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"js-compile-plugins-coverage": "cross-env NODE_ENV=test node build/build-plugins.js",
4040
"js-lint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives .",
4141
"js-minify": "npm-run-all --aggregate-output --parallel js-minify-*",
42-
"js-minify-standalone": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
43-
"js-minify-bundle": "terser --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
42+
"js-minify-standalone": "terser --compress passes=2,typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
43+
"js-minify-bundle": "terser --compress passes=2,typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
4444
"js-test": "npm-run-all --aggregate-output --parallel js-test-karma* --serial js-test-integration",
4545
"js-test-karma": "karma start js/tests/karma.conf.js",
4646
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",

0 commit comments

Comments
 (0)