-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PostCSS 8 for end users
Andrey Sitnik edited this page Dec 14, 2021
·
18 revisions
PostCSS 8 does not bring significant API changes for end-users. We dropped support for old Node.js versions, but API was not changed.
PostCSS 8 supports plugins from PostCSS 7. You just need to update postcss
dependency and tool, which run postcss
(like postcss-loader
or postcss-cli
). But some PostCSS runners didn’t publish a new version with PostCSS 8.
✅ Supports PostCSS 8
- Update
postcss-loader
to >= 4.0.3. - Add
postcss
dependency to your project or update it to >= 8.1.
✅ Supports PostCSS 8
- Update
postcss-cli
to >= 8.0. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Just update
postcss
dependency. - If you have custom plugins you may want to update them to avoid warning. See PostCSS 8.0 Migration Guide for Plugin Developers.
✅ Supports PostCSS 8
- Update
gulp-postcss
to >= 9.0. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Move to
@lodder/grunt-postcss
>= 3.0. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Update to
gatsby-plugin-postcss
>= 3.0. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Update to Next.js 10.
✅ Supports PostCSS 8
- Update to Parcel 2 nightly pre-release
yarn add parcel@nightly
. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Update to
rollup-plugin-postcss
4.0. - Add
postcss
dependency to your project.
✅ Supports PostCSS 8
- Update to
nuxt
≥2.15.3. - Use nuxt/postcss8 module.
✅ Supports PostCSS 8
- Update to
create-react-app
≥3.0.
For now, you need to avoid using PostCSS 8 plugins.