Skip to content

Commit e98c909

Browse files
🔧 Add performance config of webpack
1 parent 771b5e0 commit e98c909

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ module.exports = {
3535
},
3636
],
3737
},
38+
performance: {
39+
maxEntrypointSize: 1200000,
40+
maxAssetSize: 1200000,
41+
},
3842
devServer: {
3943
open: true,
40-
static: {
41-
directory: path.resolve(__dirname, 'demo'),
42-
},
44+
static: [path.resolve(__dirname, 'demo'), path.resolve(__dirname, 'lib')],
4345
},
4446
plugins: [
4547
new webpack.BannerPlugin({

0 commit comments

Comments
 (0)