From 0a04f93503b0cc36108ff3dc57d670f47342b83d Mon Sep 17 00:00:00 2001 From: Vlad Tokarev Date: Sat, 8 Jun 2019 21:49:12 +0300 Subject: [PATCH] Query string filename support --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 246e482..b59e143 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ OptimizeCssnanoPlugin.prototype.apply = function(compiler) { // Search for CSS assets const assetsNames = Object.keys(compilation.assets) .filter((assetName) => { - return /\.css$/i.test(assetName); + return /\.css(\?.*)?$/i.test(assetName); }); let hasErrors = false;