Skip to content

web-baseline/nuxt-css-layer

Repository files navigation

Nuxt CSS layer (@web-baseline/nuxt-css-layer)

npm version npm downloads License Nuxt

✨ Use css cascade layers in Nuxt ✨

English | 简体中文

Features

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add @web-baseline/nuxt-css-layer

That's it! You can now use css cascade layers in your Nuxt app ✨

Options

Option Description Type Default
sfc Is SFC processing enabled boolean true
sfcIncludes SFC files (refer to @web-baseline/vite-plugin-vue-style-layer) -- --
rules CSS file rules (refer to @web-baseline/postcss-wrap-up-layer) -- --
ignoreOnlyComments Ignore files that only contain comments (refer to @web-baseline/postcss-wrap-up-layer) -- --
cssLayerOrder Cascade layer sorting string | string[] | undefined undefined