Browse Source

build: avoid warning if library is < 750KB

If we go beyond this limit, we'll have to put it on a diet.
master
Saúl Ibarra Corretgé 5 years ago
parent
commit
4010d2a301
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      webpack.config.js

+ 4
- 0
webpack.config.js View File

61
         filename: `[name]${minimize ? '.min' : ''}.js`,
61
         filename: `[name]${minimize ? '.min' : ''}.js`,
62
         path: process.cwd(),
62
         path: process.cwd(),
63
         sourceMapFilename: `[name].${minimize ? 'min' : 'js'}.map`
63
         sourceMapFilename: `[name].${minimize ? 'min' : 'js'}.map`
64
+    },
65
+    performance: {
66
+        maxAssetSize: 750000,
67
+        maxEntrypointSize: 750000
64
     }
68
     }
65
 };
69
 };
66
 
70
 

Loading…
Cancel
Save