aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 637ff5d94a..42959a50ea 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -21,8 +21,8 @@ for (const path of glob('web_src/less/themes/*.less')) {
const isProduction = process.env.NODE_ENV !== 'development';
-const filterCssImport = (parsedImport, cssFile) => {
- const url = parsedImport && parsedImport.url ? parsedImport.url : parsedImport;
+const filterCssImport = (url, ...args) => {
+ const cssFile = args[1] || args[0]; // resourcePath is 2nd argument for url and 3rd for import
const importedFile = url.replace(/[?#].+/, '').toLowerCase();
if (cssFile.includes('fomantic')) {