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:
silverwind
2023-05-01 19:25:54 +02:00
repo.diff.committed_by GitHub
repo.diff.parent 3e7101dd64
repo.diff.commit fa506cd571
repo.diff.stats_desc%!(EXTRA int=10, int=6, int=8930)

repo.diff.view_file

@@ -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: {