File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,9 @@ module.exports = {
502
502
test: / \. css$ / i ,
503
503
loader: ' postcss-loader' ,
504
504
options: {
505
- config: false ,
505
+ postcssOptions: {
506
+ config: false ,
507
+ },
506
508
},
507
509
},
508
510
],
@@ -517,14 +519,18 @@ Allows to specify the path to the config file.
517
519
** webpack.config.js**
518
520
519
521
``` js
522
+ const path = require (' path' );
523
+
520
524
module .exports = {
521
525
module: {
522
526
rules: [
523
527
{
524
528
test: / \. css$ / i ,
525
529
loader: ' postcss-loader' ,
526
530
options: {
527
- config: path .resolve (__dirname , ' custom.config.js' ),
531
+ postcssOptions: {
532
+ config: path .resolve (__dirname , ' custom.config.js' ),
533
+ },
528
534
},
529
535
},
530
536
],
@@ -948,6 +954,8 @@ module.exports = {
948
954
** webpack.config.js**
949
955
950
956
``` js
957
+ const path = require (' path' );
958
+
951
959
module .exports = {
952
960
module: {
953
961
rules: [
@@ -959,7 +967,9 @@ module.exports = {
959
967
{
960
968
loader: ' postcss-loader' ,
961
969
options: {
962
- config: ' path/to/postcss.config.js' ,
970
+ postcssOptions: {
971
+ config: path .resolve (__dirname , ' path/to/postcss.config.js' ),
972
+ },
963
973
},
964
974
},
965
975
],
You can’t perform that action at this time.
0 commit comments