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