diff --git a/webpack.config.js b/webpack.config.js index 9d398da91ae4..2ed374ba4906 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,6 +25,8 @@ 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;