安装配置pug和windicss
This commit is contained in:
9
app.vue
9
app.vue
@@ -1,5 +1,4 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtWelcome />
|
||||
</div>
|
||||
</template>
|
||||
<template lang="pug">
|
||||
div
|
||||
span.bg-red-100 Hello World
|
||||
</template>>
|
||||
|
@@ -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
811
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user