Search code examples
jqueryblockuiuglifyjsgruntjs

in grunt.js, during uglify "jquery" and "blockui" i get error "Unexpected Character `?`"


if i "min" the jquery and blockui files (with uglify.js) in grunt i get the following error

Unexcpected Character "?"

How i can fix this ? Is this a known problem?

Thx in advance.


Solution

  • Ah ha! I figured it out based on some previous experience.

    One or more of my files was encoded in UTF-8 with a BOM, try re-saving your file in ANSI or UTF-8 without BOM.

    If your editor doesn't have an obvious way to change the encoding, try using Notepad++.