Remove font-awesome
and fomantic icon
module (#24471)
Fixes https://github.com/go-gitea/gitea/issues/10410. This PR removes around 120kB of CSS.
This commit is contained in:
parent
3e7101dd64
commit
fa506cd571
10 changed files with 6 additions and 8930 deletions
|
@ -40,10 +40,6 @@ const filterCssImport = (url, ...args) => {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (cssFile.includes('font-awesome') && /(eot|ttf|otf|woff|svg)$/.test(importedFile)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
@ -205,9 +201,6 @@ export default {
|
|||
},
|
||||
emitError: true,
|
||||
allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)',
|
||||
ignore: [
|
||||
'font-awesome',
|
||||
],
|
||||
}) : new AddAssetPlugin('js/licenses.txt', `Licenses are disabled during development`),
|
||||
],
|
||||
performance: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue