javascript - Unable to uglify js script with guard-uglify -
i have bunch of javascript files concatenated 1 file guard , afterwards file scripts gets uglified. i'm getting following error when uglify process starts.
error - uglifying public/js/app.js failed: "\xef" on us-ascii
i've narrowed problem down 1 specific file, if leave file out of concat function uglify process succeeds.
but weird thing is, when delete code failing file, still fails same error. whats going on here?
the file giving problem canvasjs library.
after bit of degugging found out character being throwing error ‰
it's part of regex , on place part of if statement.
why character throwing error on uglifyjs?
Comments
Post a Comment