diff options
author | silverwind <me@silverwind.io> | 2020-03-17 23:57:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 18:57:17 -0400 |
commit | ed5140d2353a1d3721db73c5fcba19b67e22931d (patch) | |
tree | 0d9f3afe8ba53b9b83dad18948fd328acf074e09 /webpack.config.js | |
parent | 85fb33a65ffa9d5f0c073a01fcb5a7ef1b7311a4 (diff) | |
download | gitea-ed5140d2353a1d3721db73c5fcba19b67e22931d.tar.gz gitea-ed5140d2353a1d3721db73c5fcba19b67e22931d.zip |
disable webpack's size warnings (#10746)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js index 241b721fae..57a41a11a7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -202,14 +202,7 @@ module.exports = { ]), ], performance: { - hints: isProduction ? 'warning' : 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; - }, + hints: false, }, resolve: { symlinks: false, |