Update minify.sh

pull/162/head
jake 5 months ago
parent 0575685174
commit aca3e8af7b

@ -5,9 +5,9 @@ mkdir miniSrc
npx esbuild ./src --bundle --platform=node --external:electron --external:original-fs --external:auto-updater --outfile=miniSrc/index.js
npx esbuild ./src/splash/preload.js --bundle --platform=node --external:electron --external:original-fs --external:auto-updater --outfile=miniSrc/preload.js
npx uglifyjs --compress --mangle --toplevel -o miniSrc/index.js -- miniSrc/index.js
npx uglifyjs --compress --mangle --toplevel -o miniSrc/preload.js -- miniSrc/preload.js
npx uglifyjs --compress --mangle --toplevel -o miniSrc/mainWindowInject.js -- src/mainWindowInject.js
npx uglifyjs --compress --mangle --toplevel --no-annotations -o miniSrc/index.js -- miniSrc/index.js
npx uglifyjs --compress --mangle --toplevel --no-annotations -o miniSrc/preload.js -- miniSrc/preload.js
npx uglifyjs --compress --mangle --toplevel --no-annotations -o miniSrc/mainWindowInject.js -- src/mainWindowInject.js
npx html-minifier --collapse-whitespace --remove-comments --remove-script-type-attributes --remove-tag-whitespace --minify-css true --minify-js true -o miniSrc/index.html -- src/splash/index.html
# cp src/splash/index.html miniSrc/

Loading…
Cancel
Save