Skip to content

Commit f1805df

Browse files
committed
added environment vars to disableCssExtraction as optional param
1 parent 9700574 commit f1805df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,8 @@ class Encore {
13021302
*
13031303
* @returns {Encore}
13041304
*/
1305-
disableCssExtraction() {
1306-
webpackConfig.disableCssExtraction();
1305+
disableCssExtraction(enabled = true) {
1306+
webpackConfig.disableCssExtraction(enabled);
13071307

13081308
return this;
13091309
}

lib/WebpackConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ class WebpackConfig {
810810
this.useFontsLoader = false;
811811
}
812812

813-
disableCssExtraction() {
814-
this.extractCss = false;
813+
disableCssExtraction(enabled = true) {
814+
this.extractCss = !enabled;
815815
}
816816

817817
configureFilenames(configuredFilenames = {}) {

0 commit comments

Comments
 (0)