mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-26 08:44:16 +08:00
chore(grunt): do not rewrite gif urls
This commit is contained in:
committed by
Peter Bacon Darwin
parent
bf9e7bfb5a
commit
146440c5b2
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user