Switching from terser to esbuild to minify javascript.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7cf4a05d89
commit
b1c72bc5cb
2 changed files with 3 additions and 3 deletions
2
debian/control
vendored
2
debian/control
vendored
|
@ -5,6 +5,7 @@ Maintainer: Daniel Baumann <daniel@debian.org>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
dh-sequence-nodejs,
|
dh-sequence-nodejs,
|
||||||
|
esbuild,
|
||||||
node-autoprefixer,
|
node-autoprefixer,
|
||||||
node-babel7,
|
node-babel7,
|
||||||
node-less,
|
node-less,
|
||||||
|
@ -16,7 +17,6 @@ Build-Depends:
|
||||||
node-source-map,
|
node-source-map,
|
||||||
rollup,
|
rollup,
|
||||||
sassc,
|
sassc,
|
||||||
terser,
|
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
Standards-Version: 4.7.2
|
Standards-Version: 4.7.2
|
||||||
Homepage: https://getbootstrap.com
|
Homepage: https://getbootstrap.com
|
||||||
|
|
4
debian/rules
vendored
4
debian/rules
vendored
|
@ -33,11 +33,11 @@ override_dh_auto_build:
|
||||||
|
|
||||||
# bootstrap.js
|
# bootstrap.js
|
||||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:false --config build/rollup.config.mjs
|
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
|
# bootstrap.bundle.js
|
||||||
NODE_PATH=node_modules rollup --sourcemap --environment BUNDLE:true --config build/rollup.config.mjs
|
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:
|
override_dh_auto_install:
|
||||||
# disabled
|
# disabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue