disable webpack's size warnings (#10746)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
pull/10758/head
silverwind 5 years ago committed by GitHub
parent 85fb33a65f
commit ed5140d235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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,

Loading…
Cancel
Save