From eeb94b565fcaa552ceb4e22e0d57b4013cfac925 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 9 Feb 2017 18:08:06 +0800 Subject: [PATCH] this.resourcePath will avoid not skipping resource file with query params. (#588) --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index e1af5e5..6b8bd0d 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -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; }