From 6240fdf331557f4b87a2580c545f3b49ce3faab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 16 Mar 2021 01:08:29 +0100 Subject: [PATCH] fix: use postcss-nesting instead --- package.json | 2 +- src/index.ts | 2 +- yarn.lock | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d86de3fe..9902a098 100755 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "defu": "^3.2.2", "postcss": "^8.2.8", "postcss-custom-properties": "^11.0.0", - "postcss-nested": "^5.0.5", + "postcss-nesting": "^7.0.1", "tailwind-config-viewer": "^1.5.0", "tailwindcss": "^2.0.3", "ufo": "^0.6.10" diff --git a/src/index.ts b/src/index.ts index c51ea26e..567c4c5e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,7 +28,7 @@ async function tailwindCSSModule (moduleOptions) { // https://tailwindcss.com/docs/using-with-preprocessors#future-css-features nuxt.options.build.postcss = defu(nuxt.options.build.postcss, { plugins: { - 'postcss-nested': {}, + 'postcss-nesting': {}, 'postcss-custom-properties': {} } }) diff --git a/yarn.lock b/yarn.lock index 8f44d025..da238232 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9241,14 +9241,14 @@ postcss-modules-values@^4.0.0: dependencies: icss-utils "^5.0.0" -postcss-nested@^5.0.1, postcss-nested@^5.0.5: +postcss-nested@^5.0.1: version "5.0.5" resolved "https://registry.yarnpkg.com/postcss-nested/-/postcss-nested-5.0.5.tgz#f0a107d33a9fab11d7637205f5321e27223e3603" integrity sha512-GSRXYz5bccobpTzLQZXOnSOfKl6TwVr5CyAQJUPub4nuRJSOECK5AqurxVgmtxP48p0Kc/ndY/YyS1yqldX0Ew== dependencies: postcss-selector-parser "^6.0.4" -postcss-nesting@^7.0.0: +postcss-nesting@^7.0.0, postcss-nesting@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/postcss-nesting/-/postcss-nesting-7.0.1.tgz#b50ad7b7f0173e5b5e3880c3501344703e04c052" integrity sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==