Django pipeline: blank render of coffee in ie8

If you use django-pipeline for coffee script rendering, you may experience the problem in IE8, that all the javascript is loaded empty.

The problem is, that IE8 awaits javascript to have mimetype 'text/javascript', not 'application/javascript' as it is by default in pipeline.


Put this in

    (b'text/coffeescript', '.coffee'),
    (b'text/less', '.less'),
    (b'text/javascript', '.js'),
    (b'text/x-sass', '.sass'),
    (b'text/x-scss', '.scss')

comments powered by Disqus