I installed nodejs from nodejs.org on my windows box.
The path to node is C:\Program Files (x86)\nodejs\node.exe
I can run node in command prompt correctly, my question is...I cloned uglifyjs to C:\gitrepos\uglifyjs\
Now I am trying to figure out how to get things setup to just run something like
node uglifyjs -o inputfile.min.js inputfile.js
What has to happen to allow me to do that?
UglifyJS is a JavaScript parser/compressor/beautifier toolkit. It can be used to combine and minify JavaScript assets so that they require less HTTP requests and make your site load faster.
uglify-es is no longer maintained and uglify-js does not support ES6+.
You can run it by :
node C:\gitrepos\uglifyjs\bin\uglifyjs -o inputfile.min.js inputfile.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With