Skip to content

Commit 560ba2a

Browse files
filipesilvavikerman
authored andcommitted
test: update ngtools/webpack size check
See angular/angular#31404 for details.
1 parent fa84505 commit 560ba2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/legacy-cli/e2e/tests/packages/webpack/test-app.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default function(skipCleaning: () => void) {
88
return Promise.resolve()
99
.then(() => createProjectFromAsset('webpack/test-app'))
1010
.then(() => exec(normalize('node_modules/.bin/webpack-cli')))
11-
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 470 * 1024))
11+
// Note: these sizes are without Build Optimizer or any advanced optimizations in the CLI.
12+
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 483 * 1024))
1213
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 25 * 1024))
1314
.then(() => expectFileSizeToBeUnder('dist/1.app.main.js', 2 * 1024))
1415
// test resource urls without ./

0 commit comments

Comments
 (0)