Switching from terser to esbuild to minify javascript.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e2adca466d
commit
5485705944
2 changed files with 3 additions and 3 deletions
4
debian/rules
vendored
4
debian/rules
vendored
|
@ -33,11 +33,11 @@ override_dh_auto_build:
|
|||
|
||||
# bootstrap.js
|
||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:false --config build/rollup.config.mjs
|
||||
cd dist/js && terser --compress --mangle --comments "/^!" --source-map content=bootstrap.js.map,includeSources,url=bootstrap.min.js.map -o bootstrap.min.js bootstrap.js
|
||||
esbuild dist/js/bootstrap.js --sourcemap --outfile=dist/js/bootstrap.min.js --minify
|
||||
|
||||
# bootstrap.bundle.js
|
||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:true --config build/rollup.config.mjs
|
||||
cd dist/js && terser --compress --mangle --comments "/^!" --source-map content=bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map -o bootstrap.bundle.min.js bootstrap.bundle.js
|
||||
esbuild dist/js/bootstrap.bundle.js --sourcemap --outfile=dist/js/bootstrap.bundle.min.js --minify
|
||||
|
||||
override_dh_auto_install:
|
||||
# disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue