Skip to content

Commit

Permalink
Revert "Update postcss packages" (#10216)
Browse files Browse the repository at this point in the history
This reverts commit 580ed5d.
  • Loading branch information
ianschmitz authored Dec 8, 2020
1 parent e039ad3 commit 3968923
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
36 changes: 17 additions & 19 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +125,23 @@ module.exports = function (webpackEnv) {
// package.json
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
plugins: [
require('postcss-flexbugs-fixes'),
[
require('postcss-preset-env'),
{
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
},
],
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
postcssNormalize(),
],
},
sourceMap: isEnvProduction && shouldUseSourceMap,
// Necessary for external CSS imports to work
// https://github.com/facebook/create-react-app/issues/2677
ident: 'postcss',

This comment has been minimized.

Copy link
@Eko0755

Eko0755 Oct 19, 2023

Iyi

plugins: () => [
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
}),
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
postcssNormalize(),
],
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
},
},
].filter(Boolean);
Expand Down
7 changes: 3 additions & 4 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@
"mini-css-extract-plugin": "0.11.3",
"optimize-css-assets-webpack-plugin": "5.0.4",
"pnp-webpack-plugin": "1.6.4",
"postcss": "8.1.14",

This comment has been minimized.

Copy link
@Eko0755

Eko0755 Oct 19, 2023

F

"postcss-flexbugs-fixes": "5.0.2",
"postcss-loader": "4.1.0",
"postcss-normalize": "9.0.0",

This comment has been minimized.

Copy link
@Eko0755

Eko0755 Oct 19, 2023

A.k

"postcss-flexbugs-fixes": "4.2.1",
"postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "5.0.2",
"prompts": "2.4.0",
Expand Down

0 comments on commit 3968923

Please sign in to comment.