uglify js error unexpected token eof "undefined"
ERROR: Unexpected token eof «undefined», expected punc «,» [-:630,15]
I believe all it means is that you are missing a ,
somewhere in your JS code, possibly on line 630, near character 15.
So if you concatenate the source of all your JS files, and take a look at line 630, you might find where the parser thought there was a missing comma.
I got this same error with ember:
Build Error (UglifyWriter)
Unexpected token: eof (undefined)
The solution was to update ember-cli-moment-shim
to version v3.8.0
This could also be because of a bug in UglifyJS when reading from stdin. See https://github.com/mishoo/UglifyJS2/issues/85 for details.