I'm using the Grunt plugins to concat, minify and generate source maps of my Javascript before I push it to the production server (I'll soon be doing the same with SASS
for CSS
).
The source maps generated are plain text but with an file 'extension' of .map
(e.g. plugins.js.map
). Apparently, they aren't being gzipped.
I'm on shared hosting so limited to .htaccess
and I assume this is as simple as adding .map
to what seems to be a list of MIME-types
in my existing .htaccess
.
For reference, I'm using the code in this question (which is taken verbatim from the HTML5 Bolierplate repo).
Everything else is being served with gzip, the source maps are the only things which are not.
What do I need to do to ensure that my source maps are also served with compression?