-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
PostCSS 8 #8087
PostCSS 8 #8087
Comments
This comment has been minimized.
This comment has been minimized.
postcss-nested wasn't available due to postcss8, but it worked after I lowered the version. |
This will be closed by #8408 |
How is this still not merged? Postcss8 is out for half a year almost and most of plugins are not working with older versions. Making our projects hard to maintain. |
@gapipro nuxt v2.15.0 has been released which includes postcss v8 support. NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly. 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 |
@clarkdo How is this not mentioned anywhere? You literally saved me after spending 2 hours investigating CI issues. |
Sorry, I’ll put it on release note |
Is there a reason why this ticket is still open? |
@simllll Yes. Nuxt still uses PostCSS 7 as we're waiting for postcss-preset -env support (see above). But Nuxt does support PostCSS 8 if installed manually. |
Please, keep this one opened until a proper support will land from |
postcss8 support is finally stable with Remaining opt-in of postcss8 for nuxt2 depends on plugin breaking changes. But is likely to be always opt-in. But modules like tailwindcss can enforce using v8 to make it seamless for end-users. Will keep an eye on changes to reflect in nuxt/postcss8 module. |
Hi @pi0, this line still results on a warning when using the new |
As @snake575 already mentioned. When using WARN postcss@8.2.8 is installed but ^7.0.32 is expected I tried to fix it, only to find out that this is expected behavior now. |
postcss8 warning is removed |
If you've upgraded to @nuxtjs/tailwindcss to v4.x, be sure to upgrade @fullhuman/postcss-purgecss to v4 to use PostCSS v8.x with nuxtjs v2.15+. |
is this really fixed? i'm still seeing vulnerabilities when i run
|
postcss-preset-env does now support PostCSS v8. See csstools/postcss-preset-env#191 and https://github.com/csstools/postcss-preset-env/releases/tag/7.0.0. So Nuxt v2 could now drop support for PostCSS v7 with these changes; making the manual workarounds and https://github.com/nuxt/postcss8 obsolete, right? |
Please use nuxt/postcss8 module for postcss8 with nuxt 2. |
Is your feature request related to a problem? Please describe.
PostCSS 8 came with a new plugin API. Right now Nuxt.js users can use new PostCSS plugins because Nuxt.js uses PostCSS 7.
Describe the solution you'd like
Update PostCSS from
^7.0.0
to^8.0.0
Additional context
PostCSS 8 changelog
The only breaking changes important for Nuxt.js is dropping Node.js 6 and 8 support.
The text was updated successfully, but these errors were encountered: