From 509fe0ec81e6a2850732d4d27e3fce6f046b469a Mon Sep 17 00:00:00 2001 From: fabianonunes Date: Wed, 7 Dec 2016 18:48:13 -0200 Subject: [PATCH] ignore querystring from resource's path --- src/extractLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extractLoader.js b/src/extractLoader.js index fa22db2..3987c1c 100644 --- a/src/extractLoader.js +++ b/src/extractLoader.js @@ -36,7 +36,7 @@ function extractLoader(content) { }); const sandbox = { require: (resourcePath) => { - const absPath = path.resolve(path.dirname(this.resourcePath), resourcePath); + const absPath = path.resolve(path.dirname(this.resourcePath), resourcePath).split("?")[0]; // Mark the file as dependency so webpack's watcher is working this.addDependency(absPath);