Skip to content
On this page

Pug 提取器

UnoCSS 的 Pug 提取器: @unocss/extractor-pug

Installation

bash
pnpm add -D @unocss/extractor-pug
pnpm add -D @unocss/extractor-pug
bash
yarn add -D @unocss/extractor-pug
yarn add -D @unocss/extractor-pug
bash
npm install -D @unocss/extractor-pug
npm install -D @unocss/extractor-pug

使用

ts
import { defineConfig } from 'unocss'
import { extractorSplit } from '@unocss/core'
import extractorPug from '@unocss/extractor-pug'

export default defineConfig({
  extractors: [extractorPug(), extractorSplit]
})
import { defineConfig } from 'unocss'
import { extractorSplit } from '@unocss/core'
import extractorPug from '@unocss/extractor-pug'

export default defineConfig({
  extractors: [extractorPug(), extractorSplit]
})

Released under the MIT License.