First of all, I know javascript isnt compiled. Uglifyjs acts as a compiler to spot out possible errors...now for my question
I just downloaded/installed uglifyjs https://github.com/mishoo/UglifyJS . I want to to compile my javascript code before minifying it. I have a fle called badjs.js and here it is:
var a=10 //notice no semicolon
a = b + 3; // b is not declared
alert('the value of a is ' + a);
The first 2 lines of badjs.js should cause uglifyjs to bark at me, but it doesn't. I run this:
uglifyjs badjs.js
All it does is just output the minified version. How do i tell uglifyjs to notify me of errors? Thanks