安装配置pug和windicss
This commit is contained in:
9
app.vue
9
app.vue
@@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template lang="pug">
|
||||||
<div>
|
div
|
||||||
<NuxtWelcome />
|
span.bg-red-100 Hello World
|
||||||
</div>
|
</template>>
|
||||||
</template>
|
|
||||||
|
@@ -1,4 +1,16 @@
|
|||||||
|
import { PugExtractor } from 'vite-plugin-windicss'
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
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"
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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