File tree 6 files changed +12
-45
lines changed
6 files changed +12
-45
lines changed Original file line number Diff line number Diff line change 1
1
| Q | A
2
- | ------------- | ---
3
- | Bug fix ? | yes/no
4
- | Improvement ? | yes/no <!-- improves an existing feature, not adding a new one -->
5
- | New feature ? | yes/no <!-- don't forget to update CHANGELOG.md -->
6
- | BC breaks ? | no
7
- | Deprecations? | yes/no <!-- don't forget to update UPGRADE.md and CHANGELOG.md -->
8
- | Docs PR | ** missing** <!-- insert URL here -->
2
+ | ------------- | --------------------------------------------------------------------- |
3
+ | BC breaks ? | yes/no |
4
+ | New feature ? | yes/no <!-- don't forget to update CHANGELOG.md --> |
5
+ | Improvement ? | yes/no <!-- improves an existing feature, not adding a new one --> |
6
+ | Bug fix ? | yes/no |
7
+ | Deprecations? | yes/no <!-- don't forget to update UPGRADE.md and CHANGELOG.md --> |
8
+ | Docs PR | ** missing** <!-- insert URL here --> |
9
9
10
10
<!-- describe your changes below -->
Original file line number Diff line number Diff line change 27
27
* (improvement) Improved ESLint linting: now only files in the project dir are linted. This ensures that symlinked dev packages are
28
28
not linted. (` /node_modules/ ` etc are still excluded, of course.)
29
29
* (feature) Add option to polyfill core node packages in webpack.
30
+ * (bc) Remove ` disableChunkSplitting() ` , chunk splitting is now always disabled. Use code splitting instead.
30
31
31
32
32
33
8.1.0
Original file line number Diff line number Diff line change 4
4
* Internal: The project was ported to TypeScript.
5
5
* Always build a legacy and a modern JS build.
6
6
* Removed the ability to use the project's ` tsconfig.json ` .
7
+ * Removed ` disableChunkSplitting() ` , chunk splitting is now always disabled. Use code splitting instead and remove the call to this method.
7
8
8
9
9
10
7.x to 8.0
Original file line number Diff line number Diff line change 19
19
"test" : " npm run-script build && ava"
20
20
},
21
21
"optionalDependencies" : {
22
- "kaba-scss" : " ^3.1.0 " ,
22
+ "kaba-scss" : " ^3.3.2 " ,
23
23
"webpack-bundle-analyzer" : " ^3.6.0"
24
24
},
25
25
"dependencies" : {
50
50
"devDependencies" : {
51
51
"@types/terser-webpack-plugin" : " ^2.2.0" ,
52
52
"ava" : " ^2.4.0" ,
53
- "kaba-scss" : " ^3.1.0 " ,
53
+ "kaba-scss" : " ^3.3.2 " ,
54
54
"webpack-bundle-analyzer" : " ^3.6.0"
55
55
},
56
56
"engines" : {
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export class Kaba
50
50
private moduleConcatenationEnabled : boolean = false ;
51
51
private plugins : webpack . Plugin [ ] = [ ] ;
52
52
private javaScriptDependenciesFileName : string = "_dependencies" ;
53
- private splitChunks : boolean = true ;
54
53
private hashFileNames : boolean = true ;
55
54
private buildModern : boolean = true ;
56
55
private nodeSettings : webpack . Node | false = false ;
@@ -207,16 +206,6 @@ export class Kaba
207
206
}
208
207
209
208
210
- /**
211
- * Disables chunk splitting
212
- */
213
- public disableChunkSplitting ( ) : this
214
- {
215
- this . splitChunks = false ;
216
- return this ;
217
- }
218
-
219
-
220
209
/**
221
210
* Disables chunk hashes in file names
222
211
*/
@@ -388,30 +377,6 @@ export class Kaba
388
377
node : this . nodeSettings ,
389
378
} ;
390
379
391
- if ( this . splitChunks )
392
- {
393
- ( config . optimization as any ) . splitChunks = {
394
- chunks : "all" ,
395
- minChunks : 1 ,
396
- maxAsyncRequests : 5 ,
397
- maxInitialRequests : 3 ,
398
- name : true ,
399
- cacheGroups : {
400
- default : {
401
- minChunks : 2 ,
402
- priority : - 20 ,
403
- reuseExistingChunk : true ,
404
- } ,
405
- vendors : {
406
- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ,
407
- priority : - 10 ,
408
- } ,
409
- } ,
410
- } ;
411
-
412
- ( config . optimization as any ) . runtimeChunk = "single" ;
413
- }
414
-
415
380
if ( ! cliConfig . debug )
416
381
{
417
382
( config . optimization as any ) . minimizer . push ( new TerserPlugin ( {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class SassRunner
24
24
*
25
25
* @return {Promise<boolean> } whether the build was successful and error-free
26
26
*/
27
- public async run ( ) : Promise < boolean | null >
27
+ public async run ( ) : Promise < boolean | void >
28
28
{
29
29
const entries = Object . keys ( this . buildConfig . entries ) ;
30
30
You can’t perform that action at this time.
0 commit comments