-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(v2): remove no longer used postcss-present-env from dependencies #4506
Conversation
[V1] Deploy preview failure Built without sensitive environment variables with commit 7185fae https://app.netlify.com/sites/docusaurus-1/deploys/605ad710b127df0008512da5 |
5176da1
to
7185fae
Compare
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 5176da1 |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4506--docusaurus-2.netlify.app/ |
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 7185fae |
plugins: [ | ||
require('postcss-preset-env')({ | ||
autoprefixer: { | ||
flexbox: 'no-2009', | ||
}, | ||
stage: 4, | ||
}), | ||
], | ||
plugins: [require('autoprefixer')], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docusaurus/packages/docusaurus/src/webpack/utils.ts
Lines 75 to 83 in 819bb43
postcssOptions: { | |
// Necessary for external CSS imports to work | |
// https://github.com/facebook/create-react-app/issues/2677 | |
ident: 'postcss', | |
plugins: [ | |
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require | |
require('autoprefixer'), | |
], | |
}, |
thanks 👍 |
Motivation
postcss-present-env
is no longer used after changes done in #4355, this pr updates documentation and removes this package from dependenciesthis change has been extracted from #4404
https://github.com/facebook/docusaurus/pull/4355/files#diff-0c33a9be9b9aca4b4536266cc9c2b8db8131f03a7bc2cec8c5ccf27ea63cbc82L76-R76
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Related PRs
#4355, #4404