The issue
I'm using uglify-js to minify some js code. I am using it like so:
uglifyjs --compress --mangle file.js -o outfile.min.js
However, this causes it to hang and never complete. I can get a successful output from uglify if I remove "--compress" and "--mangle", e.g.:
uglifyjs file.js -o outfile.min.js
However, I want to use those options of course.
My setup
Windows 7 Ultimate x64. Console is bash.
Not sure what other details are pertinent for this (except versions of the relevant tools, but see below).
Things I've tried
Searching the internet.
Updating my Node-js install:
node -v
v10.15.3
Updating my uglify-js install:
uglifyjs -V
uglify-js 3.4.9
Running uglifyjs with --verbose. Nothing is output.
Running uglifyjs on files directly in my current directory (no change).