File tree 2 files changed +23
-20
lines changed
2 files changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -127,23 +127,25 @@ module.exports = function (webpackEnv) {
127
127
// package.json
128
128
loader : require . resolve ( 'postcss-loader' ) ,
129
129
options : {
130
- // Necessary for external CSS imports to work
131
- // https://github.com/facebook/create-react-app/issues/2677
132
- ident : 'postcss' ,
133
- plugins : ( ) => [
134
- require ( 'postcss-flexbugs-fixes' ) ,
135
- require ( 'postcss-preset-env' ) ( {
136
- autoprefixer : {
137
- flexbox : 'no-2009' ,
138
- } ,
139
- stage : 3 ,
140
- } ) ,
141
- // Adds PostCSS Normalize as the reset css with default options,
142
- // so that it honors browserslist config in package.json
143
- // which in turn let's users customize the target behavior as per their needs.
144
- postcssNormalize ( ) ,
145
- ] ,
146
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
130
+ postcssOptions : {
131
+ plugins : [
132
+ require ( 'postcss-flexbugs-fixes' ) ,
133
+ [
134
+ require ( 'postcss-preset-env' ) ,
135
+ {
136
+ autoprefixer : {
137
+ flexbox : 'no-2009' ,
138
+ } ,
139
+ stage : 3 ,
140
+ } ,
141
+ ] ,
142
+ // Adds PostCSS Normalize as the reset css with default options,
143
+ // so that it honors browserslist config in package.json
144
+ // which in turn let's users customize the target behavior as per their needs.
145
+ postcssNormalize ( ) ,
146
+ ] ,
147
+ } ,
148
+ sourceMap : isEnvProduction && shouldUseSourceMap ,
147
149
} ,
148
150
} ,
149
151
] . filter ( Boolean ) ;
Original file line number Diff line number Diff line change 66
66
"mini-css-extract-plugin" : " 0.11.3" ,
67
67
"optimize-css-assets-webpack-plugin" : " 5.0.4" ,
68
68
"pnp-webpack-plugin" : " 1.6.4" ,
69
- "postcss-flexbugs-fixes" : " 4.2.1" ,
70
- "postcss-loader" : " 3.0.0" ,
71
- "postcss-normalize" : " 8.0.1" ,
69
+ "postcss" : " 8.2.4" ,
70
+ "postcss-flexbugs-fixes" : " 5.0.2" ,
71
+ "postcss-loader" : " 4.2.0" ,
72
+ "postcss-normalize" : " 9.0.0" ,
72
73
"postcss-preset-env" : " 6.7.0" ,
73
74
"postcss-safe-parser" : " 5.0.2" ,
74
75
"prompts" : " 2.4.0" ,
You can’t perform that action at this time.
0 commit comments