Supress webpack asset size warning

Set threshold for webpack's asset size warning to 2 MB due to Ant Design
being large.
This commit is contained in:
Hornwitser committed 2020-09-28 05:57:10 +02:00
1 parent 86b8775df0
commit dfaf74aac5
1 file changed
+4
+4
View File
@@ -14,6 +14,10 @@ module.exports = (env = {}) => ({
filename: "bundle.js",
path: path.resolve(__dirname, "static"),
},
performance: {
maxAssetSize: 2**21,
maxEntrypointSize: 2**21,
},
plugins: [
new CleanWebpackPlugin(),
new webpack.DefinePlugin({