Skip to content

Commit db6d606

Browse files
author
Patrick Taddey
committed
moved function 'configureStyleLoader' close to function 'disableCssExtraction' because they belong together(callback) {
1 parent 232fe2b commit db6d606

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

index.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,28 +1012,6 @@ class Encore {
10121012
return this;
10131013
}
10141014

1015-
/**
1016-
* Configure the style-loader.
1017-
* The style-loader is used only if you also call Encore. disableCssExtraction().
1018-
*
1019-
* https://github.com/webpack-contrib/style-loader#options
1020-
*
1021-
* ```
1022-
* Encore.configureStyleLoader(function(config) {
1023-
* // change the config
1024-
* // config.injectType = 'singletonStyleTag';
1025-
* });
1026-
* ```
1027-
*
1028-
* @param {function} callback
1029-
* @returns {Encore}
1030-
*/
1031-
configureStyleLoader(callback) {
1032-
webpackConfig.configureStyleLoader(callback);
1033-
1034-
return this;
1035-
}
1036-
10371015
/**
10381016
* If enabled, the react preset is added to Babel.
10391017
*
@@ -1316,6 +1294,28 @@ class Encore {
13161294
return this;
13171295
}
13181296

1297+
/**
1298+
* Configure the style-loader.
1299+
* The style-loader is used only if you also call Encore. disableCssExtraction().
1300+
*
1301+
* https://github.com/webpack-contrib/style-loader#options
1302+
*
1303+
* ```
1304+
* Encore.configureStyleLoader(function(config) {
1305+
* // change the config
1306+
* // config.injectType = 'singletonStyleTag';
1307+
* });
1308+
* ```
1309+
*
1310+
* @param {function} callback
1311+
* @returns {Encore}
1312+
*/
1313+
configureStyleLoader(callback) {
1314+
webpackConfig.configureStyleLoader(callback);
1315+
1316+
return this;
1317+
}
1318+
13191319
/**
13201320
* Call this to change how the name of each output
13211321
* file is generated.

0 commit comments

Comments
 (0)