@@ -1244,14 +1244,8 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
1244
1244
" version" : 6 ,
1245
1245
},
1246
1246
RsbuildHtmlPlugin {
1247
- " getContext" : [Function ],
1248
- " getEnvironment" : [Function ],
1247
+ " getExtraData" : [Function ],
1249
1248
" name" : " RsbuildHtmlPlugin" ,
1250
- " options" : {
1251
- " index" : {
1252
- " templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
1253
- },
1254
- },
1255
1249
},
1256
1250
DefinePlugin {
1257
1251
" _args" : [
@@ -3553,7 +3547,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
3553
3547
},
3554
3548
" viewport" : " width=device-width, initial-scale=1.0" ,
3555
3549
},
3556
- " minify" : [Function ],
3557
3550
" publicPath" : " auto" ,
3558
3551
" scriptLoading" : " defer" ,
3559
3552
" showErrors" : true ,
@@ -3566,14 +3559,8 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
3566
3559
" version" : 6 ,
3567
3560
},
3568
3561
RsbuildHtmlPlugin {
3569
- " getContext" : [Function ],
3570
- " getEnvironment" : [Function ],
3562
+ " getExtraData" : [Function ],
3571
3563
" name" : " RsbuildHtmlPlugin" ,
3572
- " options" : {
3573
- " index" : {
3574
- " templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
3575
- },
3576
- },
3577
3564
},
3578
3565
DefinePlugin {
3579
3566
" _args" : [
@@ -5966,7 +5953,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
5966
5953
},
5967
5954
" viewport" : " width=device-width, initial-scale=1.0" ,
5968
5955
},
5969
- " minify" : false ,
5956
+ " minify" : " auto " ,
5970
5957
" publicPath" : " auto" ,
5971
5958
" scriptLoading" : " defer" ,
5972
5959
" showErrors" : true ,
@@ -5989,7 +5976,6 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
5989
5976
},
5990
5977
" viewport" : " width=device-width, initial-scale=1.0" ,
5991
5978
},
5992
- " minify" : false ,
5993
5979
" scriptLoading" : " defer" ,
5994
5980
" template" : " " ,
5995
5981
" templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
@@ -5999,14 +5985,8 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
5999
5985
" version" : 5 ,
6000
5986
},
6001
5987
RsbuildHtmlPlugin {
6002
- " getContext" : [Function ],
6003
- " getEnvironment" : [Function ],
5988
+ " getExtraData" : [Function ],
6004
5989
" name" : " RsbuildHtmlPlugin" ,
6005
- " options" : {
6006
- " index" : {
6007
- " templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
6008
- },
6009
- },
6010
5990
},
6011
5991
DefinePlugin {
6012
5992
" definitions" : {
@@ -7608,26 +7588,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
7608
7588
},
7609
7589
" viewport" : " width=device-width, initial-scale=1.0" ,
7610
7590
},
7611
- " minify" : {
7612
- " collapseWhitespace" : true ,
7613
- " keepClosingSlash" : true ,
7614
- " minifyCSS" : true ,
7615
- " minifyJS" : {
7616
- " format" : {
7617
- " ascii_only" : true ,
7618
- },
7619
- " mangle" : {
7620
- " safari10" : true ,
7621
- },
7622
- },
7623
- " minifyURLs" : true ,
7624
- " removeComments" : false ,
7625
- " removeEmptyAttributes" : true ,
7626
- " removeRedundantAttributes" : true ,
7627
- " removeScriptTypeAttributes" : true ,
7628
- " removeStyleLinkTypeAttributes" : true ,
7629
- " useShortDoctype" : true ,
7630
- },
7591
+ " minify" : " auto" ,
7631
7592
" publicPath" : " auto" ,
7632
7593
" scriptLoading" : " defer" ,
7633
7594
" showErrors" : true ,
@@ -7650,26 +7611,6 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
7650
7611
},
7651
7612
" viewport" : " width=device-width, initial-scale=1.0" ,
7652
7613
},
7653
- " minify" : {
7654
- " collapseWhitespace" : true ,
7655
- " keepClosingSlash" : true ,
7656
- " minifyCSS" : true ,
7657
- " minifyJS" : {
7658
- " format" : {
7659
- " ascii_only" : true ,
7660
- },
7661
- " mangle" : {
7662
- " safari10" : true ,
7663
- },
7664
- },
7665
- " minifyURLs" : true ,
7666
- " removeComments" : false ,
7667
- " removeEmptyAttributes" : true ,
7668
- " removeRedundantAttributes" : true ,
7669
- " removeScriptTypeAttributes" : true ,
7670
- " removeStyleLinkTypeAttributes" : true ,
7671
- " useShortDoctype" : true ,
7672
- },
7673
7614
" scriptLoading" : " defer" ,
7674
7615
" template" : " " ,
7675
7616
" templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
@@ -7679,14 +7620,8 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
7679
7620
" version" : 5 ,
7680
7621
},
7681
7622
RsbuildHtmlPlugin {
7682
- " getContext" : [Function ],
7683
- " getEnvironment" : [Function ],
7623
+ " getExtraData" : [Function ],
7684
7624
" name" : " RsbuildHtmlPlugin" ,
7685
- " options" : {
7686
- " index" : {
7687
- " templateContent" : " <!doctype html><html><head></head><body><div id=\\ " root \\" ></div></body></html>" ,
7688
- },
7689
- },
7690
7625
},
7691
7626
DefinePlugin {
7692
7627
" definitions" : {
0 commit comments