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 @@ -125,23 +125,25 @@ module.exports = function (webpackEnv) {
125
125
// package.json
126
126
loader : require . resolve ( 'postcss-loader' ) ,
127
127
options : {
128
- // Necessary for external CSS imports to work
129
- // https://github.com/facebook/create-react-app/issues/2677
130
- ident : 'postcss' ,
131
- plugins : ( ) => [
132
- require ( 'postcss-flexbugs-fixes' ) ,
133
- require ( 'postcss-preset-env' ) ( {
134
- autoprefixer : {
135
- flexbox : 'no-2009' ,
136
- } ,
137
- stage : 3 ,
138
- } ) ,
139
- // Adds PostCSS Normalize as the reset css with default options,
140
- // so that it honors browserslist config in package.json
141
- // which in turn let's users customize the target behavior as per their needs.
142
- postcssNormalize ( ) ,
143
- ] ,
144
- sourceMap : isEnvProduction ? shouldUseSourceMap : isEnvDevelopment ,
128
+ postcssOptions : {
129
+ plugins : [
130
+ require ( 'postcss-flexbugs-fixes' ) ,
131
+ [
132
+ require ( 'postcss-preset-env' ) ,
133
+ {
134
+ autoprefixer : {
135
+ flexbox : 'no-2009' ,
136
+ } ,
137
+ stage : 3 ,
138
+ } ,
139
+ ] ,
140
+ // Adds PostCSS Normalize as the reset css with default options,
141
+ // so that it honors browserslist config in package.json
142
+ // which in turn let's users customize the target behavior as per their needs.
143
+ postcssNormalize ( ) ,
144
+ ] ,
145
+ } ,
146
+ sourceMap : isEnvProduction && shouldUseSourceMap ,
145
147
} ,
146
148
} ,
147
149
] . 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.1.14" ,
69
+ "postcss-flexbugs-fixes" : " 5.0.2" ,
70
+ "postcss-loader" : " 4.1.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