gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

minimized JS exported with MIME type text/octet #53

Closed gonzobrandon closed 10 years ago

gonzobrandon commented 10 years ago

Running grunt requirejs on my mac seemed to build fine, but the file output after doing a file --mime app.jswas application/octet-stream; charset=binary. Problem is that my GoLang web server interprets this as text/html for some reason.

I can get my server to force the mimetype, but im thinking either r.js or something inbetween could be the culprit.

Grunt: 0.4.2 Node: 0.10.24 RequireJS: 2.1.9 MacOSX: 10.9.2

sindresorhus commented 10 years ago

This task just passes your files to RequireJS, try there.

https://github.com/gruntjs/grunt-contrib-requirejs/blob/master/tasks/requirejs.js#L37