Add performance warning
This commit is contained in:
parent
52db6a05e8
commit
3752f7c4aa
1 changed files with 5 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue