File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 18
18
"devDependencies" : {
19
19
"raw-loader" : " ^4.0.2" ,
20
20
"sass" : " ^1.32.8" ,
21
- "sass-loader" : " ^10.1 .1" ,
21
+ "sass-loader" : " ^11.0 .1" ,
22
22
"typescript" : " ~4.2.3" ,
23
- "webpack" : " ^4.46 .0" ,
23
+ "webpack" : " ^5.27 .0" ,
24
24
"webpack-cli" : " ^4.5.0"
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ import { createProjectFromAsset } from '../../../utils/assets';
3
3
import { expectFileSizeToBeUnder , expectFileToMatch , replaceInFile } from '../../../utils/fs' ;
4
4
import { exec } from '../../../utils/process' ;
5
5
6
-
7
6
export default async function ( skipCleaning : ( ) => void ) {
8
7
const webpackCLIBin = normalize ( 'node_modules/.bin/webpack-cli' ) ;
9
8
10
9
await createProjectFromAsset ( 'webpack/test-app' ) ;
10
+
11
11
await exec ( webpackCLIBin ) ;
12
12
13
13
// Note: these sizes are without Build Optimizer or any advanced optimizations in the CLI.
14
- await expectFileSizeToBeUnder ( 'dist/app.main.js' , 565 * 1024 ) ;
15
- await expectFileSizeToBeUnder ( 'dist/1.app.main.js' , 1 * 1024 ) ;
16
- await expectFileSizeToBeUnder ( 'dist/2.app.main.js' , 2 * 1024 ) ;
14
+ await expectFileSizeToBeUnder ( 'dist/app.main.js' , 656 * 1024 ) ;
15
+ await expectFileSizeToBeUnder ( 'dist/501.app.main.js' , 1 * 1024 ) ;
16
+ await expectFileSizeToBeUnder ( 'dist/888.app.main.js' , 2 * 1024 ) ;
17
+ await expectFileSizeToBeUnder ( 'dist/972.app.main.js' , 2 * 1024 ) ;
17
18
18
19
19
20
// test resource urls without ./
You can’t perform that action at this time.
0 commit comments