Skip to content

Commit

Permalink
restore postcss-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 14, 2024
1 parent 8c85482 commit 716517f
Show file tree
Hide file tree
Showing 3 changed files with 625 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@docusaurus/logger": "3.6.1",
"@docusaurus/types": "3.6.1",
"@docusaurus/utils": "3.6.1",
"autoprefixer": "^10.4.14",
"babel-loader": "^9.2.1",
"clean-css": "^5.3.2",
"copy-webpack-plugin": "^11.0.0",
Expand All @@ -37,6 +36,7 @@
"null-loader": "^4.0.1",
"postcss": "^8.4.26",
"postcss-loader": "^7.3.3",
"postcss-preset-env": "^10.1.0",
"react-dev-utils": "^12.0.1",
"terser-webpack-plugin": "^5.3.9",
"tslib": "^2.6.0",
Expand Down
9 changes: 7 additions & 2 deletions packages/docusaurus-bundler/src/loaders/styleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ export async function createStyleLoadersFactory({
// https://github.com/facebook/create-react-app/issues/2677
ident: 'postcss',
plugins: [
// eslint-disable-next-line global-require
require('autoprefixer'),
[
'postcss-preset-env',
{
// Keeping this empty options object on purpose
// It could be more convenient for configurePostCss() usage
},
],
],
},
},
Expand Down
Loading

0 comments on commit 716517f

Please sign in to comment.