Add performance warning

This commit is contained in:
Andras Schmelczer 2022-09-21 23:31:00 +02:00
parent 52db6a05e8
commit 3752f7c4aa
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E

View file

@ -20,6 +20,11 @@ module.exports = (env, argv) => ({
}),
],
},
performance: {
assetFilter: (f) => !/\.(webm|mp4|pdf)$/.test(f),
maxEntrypointSize: 100000,
maxAssetSize: 512000,
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',