nuxt-postcss8

Since [nuxt@2.15](https://github.com/nuxt/nuxt.js/releases/tag/v2.15.0) nuxt supports opting-in to use `postcss@8` (via [nuxt/nuxt.js#8546](https://github.com/nuxt/nuxt.js/pull/8546)).

please use @nuxt/postcss8
Last updated 5 years ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nuxt-postcss8 
SYNC missed versions from official npm registry.

postcss8 support for nuxt 2.15+

Since nuxt@2.15 nuxt supports opting-in to use postcss@8 (via nuxt/nuxt.js#8546).

Upgrade is pending for csstools/postcss-preset-env#191 (see nuxt/nuxt.js#8087 and nuxt/nuxt.js#8408)

In the meantime, this module allows rapid migration:

  • Ensures supported nuxt version is used (>= 2.15.3)
  • Forces to use upgraded dependencies using __NUXT_PREPATHS__
  • Will be updated accordingly to self-disable when a nuxt version with default postcss8 detected
  • Use autoprefixer instead of postcss-preset-env

Usage

Install nuxt-postcss8 as devDependency:

yarn add --dev nuxt-postcss8
# or
npm i -D nuxt-postcss8

Add nuxt-postcss8 to buildModules in nuxt.config:

// nuxt.config
export default {
  buildModules: [
    'nuxt-postcss8'
  ]
}

For module authors

If you have a nuxt module that requires postcss@8, install postcss@8 and nuxt-postcss8 as dependency:

yarn add postcss@8 nuxt-postcss8
# or
npm i postcss@8 nuxt-postcss8

Inside module:

export default async function() {
  await this.addModule(require('nuxt-postcss8'))
}

Current Tags

  • 1.1.2                                ...           latest (5 years ago)

8 Versions

  • 1.1.2 [deprecated]           ...           5 years ago
  • 1.1.1 [deprecated]           ...           5 years ago
  • 1.1.0 [deprecated]           ...           5 years ago
  • 1.0.4 [deprecated]           ...           5 years ago
  • 1.0.3 [deprecated]           ...           5 years ago
  • 1.0.2 [deprecated]           ...           5 years ago
  • 1.0.1 [deprecated]           ...           5 years ago
  • 1.0.0 [deprecated]           ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 6
Last Month 8
Dependencies (8)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |