Up the max asset and entry point sizes

40kb seems a good time to pause and reflect on the total size.
The current maximum is impossible to meet without no further
changes to the code.

12kb is also more flexible than 11.5

Change-Id: I5ee8c236d90542afacc0e8de513a45a15ccd529b
This commit is contained in:
jdlrobson 2018-03-27 12:43:43 -07:00
parent 1acd15adb1
commit bb2ad2ed38
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@
"bundlesize": [ "bundlesize": [
{ {
"path": "resources/dist/index.js", "path": "resources/dist/index.js",
"maxSize": "11.5KB" "maxSize": "12KB"
} }
] ]
} }

View file

@ -32,8 +32,8 @@ conf = {
entry: { index: './src' }, entry: { index: './src' },
performance: { performance: {
hints: isProduction ? 'error' : false, hints: isProduction ? 'error' : false,
maxAssetSize: 35.3 * 1024, maxAssetSize: 40 * 1024,
maxEntrypointSize: 35.3 * 1024, maxEntrypointSize: 40 * 1024,
assetFilter: function ( filename ) { assetFilter: function ( filename ) {
// The default filter excludes map files but we rename ours to .filename. // The default filter excludes map files but we rename ours to .filename.
return filename.endsWith( '.js' ); return filename.endsWith( '.js' );