Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 580ed5d

Browse filesBrowse files
raixianschmitz
andauthored
Update postcss packages (#10003)
Co-authored-by: Ian Schmitz <ianschmitz@gmail.com>
1 parent 8f2413e commit 580ed5d
Copy full SHA for 580ed5d

File tree

Expand file treeCollapse file tree

2 files changed

+23
-20
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+23
-20
lines changed

‎packages/react-scripts/config/webpack.config.js

Copy file name to clipboardExpand all lines: packages/react-scripts/config/webpack.config.js
+19-17Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,25 @@ module.exports = function (webpackEnv) {
125125
// package.json
126126
loader: require.resolve('postcss-loader'),
127127
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,
145147
},
146148
},
147149
].filter(Boolean);

‎packages/react-scripts/package.json

Copy file name to clipboardExpand all lines: packages/react-scripts/package.json
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@
6565
"mini-css-extract-plugin": "0.11.3",
6666
"optimize-css-assets-webpack-plugin": "5.0.4",
6767
"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",
7172
"postcss-preset-env": "6.7.0",
7273
"postcss-safe-parser": "5.0.2",
7374
"prompts": "2.4.0",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.