From 3dff18a42e633ff9ad94ade6682eaa5ecd12df91 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 9 Feb 2017 17:51:43 +0800 Subject: [PATCH] this.resourcePath will avoid not skipping resource file with query params. --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index e1af5e51..6b8bd0d8 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; }