Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@nuxt/postcss8

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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)).

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
6.4K
-83.26%
Maintainers
3
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts