merge bootstrap 4 terser config into bootstrap 5 terser config

This commit is contained in:
IanDelMar 2022-03-06 21:03:15 +01:00
parent 44cb85c8b5
commit d8acb2f916
3 changed files with 3 additions and 28 deletions

View File

@ -15,10 +15,10 @@
"css-postcss-bs4": "postcss --config src/build/postcss.config.js --replace \"css/*.css\" \"!css/*.rtl*.css\" \"!css/*.min.css\" \"!css/theme.css\" \"!css/custom-editor-style.css\" -- BS4",
"js": "npm-run-all js-compile js-minify",
"js-compile": "rollup --config src/build/rollup.config.js --sourcemap",
"js-minify": "terser --config-file src/build/terser.config.json --output js/theme.min.js js/theme.js",
"js-minify": "terser js/theme.min.js --config-file src/build/terser.config.json --source-map \"content=js/theme.js.map,url=theme.min.js.map,filename=theme.min.js\" --output js/theme.min.js",
"js-bs4": "npm-run-all js-compile-bs4 js-minify-bs4",
"js-compile-bs4": "npm run js-compile -- BS4",
"js-minify-bs4": "terser --config-file src/build/terser.config-bs4.json --output js/theme-bootstrap4.min.js js/theme-bootstrap4.js",
"js-minify-bs4": "terser js/theme-bootstrap4.min.js --config-file src/build/terser.config.json --source-map \"content=js/theme-bootstrap4.js.map,url=theme-bootstrap4.min.js.map,filename=theme-bootstrap4.min.js\" --output js/theme-bootstrap4.min.js",
"watch": "npm-run-all --parallel watch-run-*",
"watch-bs": "npm-run-all --parallel bs watch-run-*",
"watch-run-css": "nodemon --watch src/sass/ --ext scss --exec \"npm-run-all css\"",

View File

@ -1,24 +0,0 @@
{
"parse": {
},
"compress": {
"booleans": true,
"conditionals": true,
"drop_console": true,
"drop_debugger": true,
"if_return": true,
"join_vars": true,
"keep_classnames": false,
"keep_fnames": false,
"reduce_vars": true,
"sequences": true,
"warnings": false,
"ecma": 5
},
"mangle": {
},
"sourceMap": {
"filename": "js/theme-bootstrap4.js.map",
"url": "theme-bootstrap4.min.js.map"
}
}

View File

@ -18,7 +18,6 @@
"mangle": {
},
"sourceMap": {
"filename": "js/theme.js.map",
"url": "theme.min.js.map"
"includeSources": true
}
}