Skip to content

PostCSS 8 #8087

Closed
@ai

Description

@ai

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.

Activity

pi0

pi0 commented on Sep 17, 2020

@pi0
Member

Hi @ai thanks for creating issue. We also planned doing upgrade. All dependencies dropped Node.js 8 support are currently locked for nuxt 2 to avoid breaking changes however seems for longer term it would be best to bump them in a semver-minor and notify users.

imShara

imShara commented on Nov 3, 2020

@imShara
katohs

katohs commented on Nov 5, 2020

@katohs

Still not works?

postcss-nested wasn't available due to postcss8, but it worked after I lowered the version.

danielroe

danielroe commented on Dec 6, 2020

@danielroe
Member

This will be closed by #8408

gapipro

gapipro commented on Feb 15, 2021

@gapipro

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.

linked a pull request that will close this issuefeat(postcss): upgrade to postcss v8 #8408on Feb 15, 2021
clarkdo

clarkdo commented on Feb 16, 2021

@clarkdo
Member

@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
janvorisek

janvorisek commented on Feb 18, 2021

@janvorisek

@clarkdo How is this not mentioned anywhere? You literally saved me after spending 2 hours investigating CI issues.

clarkdo

clarkdo commented on Feb 18, 2021

@clarkdo
Member

Sorry, I’ll put it on release note

simllll

simllll commented on Feb 24, 2021

@simllll

Is there a reason why this ticket is still open?

151 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    PostCSS 8 · Issue #8087 · nuxt/nuxt