aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-01-21 13:36:58 +0200
committerXhmikosR <[email protected]>2020-03-09 16:26:10 +0200
commit3b5283602cd43042daa2b2f75b24db73fb6e92fa (patch)
treeedc7fd8234b63421326bf2910e178fbfd84d5071 /package.json
parentcc3ca2586f17e9c987d70c75a291986f29777866 (diff)
downloadbootstrap-3b5283602cd43042daa2b2f75b24db73fb6e92fa.tar.xz
bootstrap-3b5283602cd43042daa2b2f75b24db73fb6e92fa.zip
Replace uglify-js with terser.
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 4688e7e14..cc27c16ed 100644
--- a/package.json
+++ b/package.json
@@ -51,9 +51,9 @@
"js-lint-docs": "eslint --cache --cache-location .cache/.eslintcache site/",
"js-minify": "npm-run-all --parallel js-minify-main js-minify-docs",
"js-minify-main": "npm-run-all js-minify-standalone js-minify-bundle",
- "js-minify-standalone": "uglifyjs --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",
- "js-minify-bundle": "uglifyjs --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",
- "js-minify-docs": "cross-env-shell uglifyjs --mangle --comments \\\"/^!/\\\" --output site/docs/$npm_package_version_short/assets/js/docs.min.js site/docs/$npm_package_version_short/assets/js/vendor/anchor.min.js site/docs/$npm_package_version_short/assets/js/vendor/clipboard.min.js site/docs/$npm_package_version_short/assets/js/vendor/bs-custom-file-input.min.js \"site/docs/$npm_package_version_short/assets/js/src/*.js\"",
+ "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",
+ "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",
+ "js-minify-docs": "cross-env-shell terser --mangle --comments \\\"/^!/\\\" --output site/docs/$npm_package_version_short/assets/js/docs.min.js site/docs/$npm_package_version_short/assets/js/vendor/anchor.min.js site/docs/$npm_package_version_short/assets/js/vendor/clipboard.min.js site/docs/$npm_package_version_short/assets/js/vendor/bs-custom-file-input.min.js \"site/docs/$npm_package_version_short/assets/js/src/*.js\"",
"js-test": "npm-run-all js-test-karma* js-test-integration",
"js-test-karma": "karma start js/tests/karma.conf.js",
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
@@ -146,7 +146,7 @@
"sinon": "^7.5.0",
"stylelint": "^13.2.1",
"stylelint-config-twbs-bootstrap": "^2.0.1",
- "uglify-js": "^3.8.0",
+ "terser": "^4.6.6",
"vnu-jar": "20.2.28"
},
"files": [