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