this.resourcePath will avoid not skipping resource file with query params. (#588)

This commit is contained in:
Jason 2017-02-09 18:08:06 +08:00 committed by Jan Nicklas
parent 810771e316
commit eeb94b565f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = function (source) {
return source;
}
// Skip .js files
if (/\.js$/.test(this.request)) {
if (/\.js$/.test(this.resourcePath)) {
return source;
}