安装配置pug和windicss

This commit is contained in:
2022-12-20 03:10:05 +08:00
parent 31f265a4c5
commit ee11573a96
4 changed files with 813 additions and 27 deletions

View File

@@ -1,5 +1,4 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>
<template lang="pug">
div
span.bg-red-100 Hello World
</template>>

View File

@@ -1,4 +1,16 @@
import { PugExtractor } from 'vite-plugin-windicss'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['nuxt-windicss'],
windicss: {
config: {
extract: {
extractors: [{
extractor: PugExtractor,
extensions: ['vue', 'pug']
}]
}
}
},
})

811
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,6 +8,10 @@
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "3.0.0"
"nuxt": "3.0.0",
"nuxt-windicss": "^2.6.0"
},
"dependencies": {
"pug": "^3.0.2"
}
}