2

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.

Moszeed
  • 1,037
  • 1
  • 10
  • 20
  • I'm getting the same problem, but not necessarily with Jquery. I've seen this with other minification libraries when accidentally trying to re-minify code that was already minified, but that's not my issue this time... – Chris Jaynes Jul 25 '12 at 15:19

1 Answers1

3

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++.

Community
  • 1
  • 1
Chris Jaynes
  • 2,868
  • 30
  • 29