Skip to content

Commit a87a64e

Browse files
silverwindzeripath
andauthored
Fix missing gitgraph css import (#12112)
The filter was wrongly excluding the gitGraph.css file. Need to clean this up later so that imports are always relative to the source file (which is not the case for fonts right now). Regressed by: #11997 Co-authored-by: zeripath <[email protected]>
1 parent 712d88e commit a87a64e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const isProduction = process.env.NODE_ENV !== 'development';
2525
const filterCssImport = (parsedImport, cssFile) => {
2626
const url = parsedImport && parsedImport.url ? parsedImport.url : parsedImport;
2727
const importedFile = url.replace(/[?#].+/, '').toLowerCase();
28+
if (/vendor\/assets/.test(url)) return false; // font imports
29+
if (/web_src[/\\]less/.test(cssFile)) return true; // relative imports
2830
if (cssFile.includes('monaco')) return true;
2931
if (cssFile.includes('fomantic')) {
3032
if (/brand-icons/.test(importedFile)) return false;

0 commit comments

Comments
 (0)