3 ms·
>which in my limited experience doesn't do nearly a good a job of minifying Javascript than other tools (because it can't do symbol renaming). It's possible to
by sgtpep 10y ago
>which in my limited experience doesn't do nearly a good a job of minifying Javascript than other tools (because it can't do symbol renaming).
It's possible to extract js-code from the vulcanized html file to the separate js-file using the crisper command, than run the uglifyjs command with appropriate minification arguments.
Example:
vulcanize --inline-css --inline-scripts ./index.html | crisper -h ./build/index.html -j ./build/script.js
cd ./build
uglifyjs -m -c warnings=false -o ./script.js --source-map=./script.js.map ./script.js