chore(grunt): do not rewrite gif urls

This commit is contained in:
Brian Ford
2014-10-17 16:31:59 +03:00
committed by Peter Bacon Darwin
parent bf9e7bfb5a
commit 146440c5b2

View File

@@ -303,7 +303,7 @@ module.exports = {
rewrite: function(){
return function(req, res, next){
var REWRITE = /\/(guide|api|cookbook|misc|tutorial|error).*$/,
IGNORED = /(\.(css|js|png|jpg)$|partials\/.*\.html$)/,
IGNORED = /(\.(css|js|png|jpg|gif)$|partials\/.*\.html$)/,
match;
if (!IGNORED.test(req.url) && (match = req.url.match(REWRITE))) {