mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
disable webpack's size warnings (#10746)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
85fb33a65f
commit
ed5140d235
1 changed files with 1 additions and 8 deletions
|
@ -202,14 +202,7 @@ module.exports = {
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
performance: {
|
performance: {
|
||||||
hints: isProduction ? 'warning' : false,
|
hints: false,
|
||||||
maxEntrypointSize: 512000,
|
|
||||||
maxAssetSize: 512000,
|
|
||||||
assetFilter: (filename) => {
|
|
||||||
if (filename.endsWith('.map')) return false;
|
|
||||||
if (['js/swagger.js', 'js/highlight.js', 'fomantic/semantic.min.css'].includes(filename)) return false;
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
symlinks: false,
|
symlinks: false,
|
||||||
|
|
Loading…
Reference in a new issue