Skip to content

Commit f767a5a

Browse files
silverwindzeripath
authored andcommitted
Fix missing gitgraph css import (go-gitea#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: go-gitea#11997 Co-authored-by: zeripath <art27@cantab.net>
1 parent 2221c54 commit f767a5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)