Skip to content

Commit

Permalink
disable webpack's size warnings (#10746)
Browse files Browse the repository at this point in the history
Co-authored-by: techknowlogick <[email protected]>
  • Loading branch information
silverwind and techknowlogick authored Mar 17, 2020
1 parent 85fb33a commit ed5140d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed5140d

Please sign in to comment.