File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
- * @ keichinger @ jesko-plitt
1
+ * @ tkasper @ thyrannoizer
Original file line number Diff line number Diff line change
1
+ 9.0.1
2
+ =====
3
+
4
+ * (improvement) Add possibility to add custom webpack loader. Use ` addCustomLoader ` in your Kaba file.
5
+
6
+
1
7
vNext
2
8
=====
3
9
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ export class Kaba
104
104
] ;
105
105
private postCssLoaderOptions : PostCssLoaderOptions = { } ;
106
106
107
+ private customLoader : object | null = null ;
108
+
107
109
108
110
/**
109
111
*
@@ -360,6 +362,16 @@ export class Kaba
360
362
}
361
363
362
364
365
+ /**
366
+ * Add custom loader to webpack config
367
+ */
368
+ public addCustomLoader ( loader : object ) : this
369
+ {
370
+ this . customLoader = loader ;
371
+ return this ;
372
+ }
373
+
374
+
363
375
/**
364
376
* Builds the specialized webpack config for a legacy / module build
365
377
*/
@@ -597,6 +609,11 @@ export class Kaba
597
609
} ) ;
598
610
}
599
611
612
+ if ( null !== this . customLoader )
613
+ {
614
+ configTemplate . module ?. rules . push ( this . customLoader ) ;
615
+ }
616
+
600
617
return configTemplate ;
601
618
}
602
619
}
You can’t perform that action at this time.
0 commit comments