aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-03-17 23:57:17 +0100
committerGitHub <noreply@github.com>2020-03-17 18:57:17 -0400
commited5140d2353a1d3721db73c5fcba19b67e22931d (patch)
tree0d9f3afe8ba53b9b83dad18948fd328acf074e09 /webpack.config.js
parent85fb33a65ffa9d5f0c073a01fcb5a7ef1b7311a4 (diff)
downloadgitea-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.js9
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,