diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js index 72d83522d2..40a184eb44 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,15 +25,17 @@ const isProduction = process.env.NODE_ENV !== 'development'; const filterCssImport = (parsedImport, cssFile) => { const url = parsedImport && parsedImport.url ? parsedImport.url : parsedImport; const importedFile = url.replace(/[?#].+/, '').toLowerCase(); - if (/vendor\/assets/.test(url)) return false; // font imports - if (/web_src[/\\]less/.test(cssFile)) return true; // relative imports - if (cssFile.includes('monaco')) return true; + if (cssFile.includes('fomantic')) { if (/brand-icons/.test(importedFile)) return false; - if (/(eot|ttf|woff)$/.test(importedFile)) return false; - return true; + if (/(eot|ttf|otf|woff)$/.test(importedFile)) return false; + } + + if (cssFile.includes('font-awesome')) { + if (/(eot|ttf|otf|woff|svg)$/.test(importedFile)) return false; } - return cssFile.includes('node_modules'); + + return true; }; module.exports = { |