Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Opt-in to postcss 8 in Nuxt 2 apps.

License

NotificationsYou must be signed in to change notification settings

nuxt/postcss8

Repository files navigation

npm versionnpm downloadslicense

⚠️ This package is no longer necessary with Nuxt >= 2.16⚠️

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
  • Useautoprefixer instead ofpostcss-preset-env

Usage

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']}

For module authors

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')}

📑 License

MIT License


[8]ページ先頭

©2009-2025 Movatter.jp