Skip to content

Commit 0c89aa2

Browse files
committed
renaming the default variable from enabled to disabled
1 parent 2dfc839 commit 0c89aa2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1299,11 +1299,11 @@ class Encore {
12991299
*
13001300
* Internally, this disables the mini-css-extract-plugin
13011301
* and uses the style-loader instead.
1302-
* @param {boolean} enabled
1302+
* @param {boolean} disabled
13031303
* @returns {Encore}
13041304
*/
1305-
disableCssExtraction(enabled = true) {
1306-
webpackConfig.disableCssExtraction(enabled);
1305+
disableCssExtraction(disabled = true) {
1306+
webpackConfig.disableCssExtraction(disabled);
13071307

13081308
return this;
13091309
}

lib/WebpackConfig.js

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

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

817817
configureFilenames(configuredFilenames = {}) {

0 commit comments

Comments
 (0)