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
feat(postcss): support postcss v8 with explict postcss installation #8546
Conversation
@@ -0,0 +1,208 @@ | |||
import fs from 'fs' |
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.
Most code is duplicate of postcss.js
, this is more handy when we fully migrate to v8: just remove postcss.js
and rename postcss-v8.js
Codecov Report
@@ Coverage Diff @@
## dev #8546 +/- ##
==========================================
- Coverage 67.46% 66.00% -1.47%
==========================================
Files 91 92 +1
Lines 3916 4009 +93
Branches 1082 1104 +22
==========================================
+ Hits 2642 2646 +4
- Misses 1025 1095 +70
- Partials 249 268 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
f2cb299
to
6b6da8d
Compare
Types of changes
Description
As we can't fully migrated to postcss 8 until postcss-preset-env supports v8
This pr is for supporting postcss config in nuxt if user installs postcss packages explicitly, required packages:
NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now.
yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1 # or npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
Checklist: