- Notifications
You must be signed in to change notification settings - Fork7
Opt-in to postcss 8 in Nuxt 2 apps.
License
NotificationsYou must be signed in to change notification settings
nuxt/postcss8
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PRnuxt#9671 upgraded PostCSS to version 8.
This module allows opting-in topostcss@8 with nuxt 2 projects.
- Ensures supported nuxt version is used (
>= 2.15.3 < 2.16.0
) - Forces to use correct dependencies using
__NUXT_PREPATHS__
- Will self-adjust integration method based on future nuxt versions
- Use
autoprefixer
instead ofpostcss-preset-env
Install@nuxt/postcss8
asdevDependency
of project:
yarn add --dev @nuxt/postcss8# ornpm i -D @nuxt/postcss8
Add@nuxt/postcss8
tobuildModules
innuxt.config
:
// nuxt.configexportdefault{buildModules:['@nuxt/postcss8']}
If you have a nuxt module that requires postcss@8, install@nuxt/postcss8
asdependency
of module:
yarn add postcss@8 @nuxt/postcss8# ornpm i postcss@8 @nuxt/postcss8
Inside module:
exportdefaultasyncfunction(){awaitthis.addModule('@nuxt/postcss8')}
About
Opt-in to postcss 8 in Nuxt 2 apps.
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published