mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
fix: unocss exclude
This commit is contained in:
parent
8d5be25093
commit
dffe8834a1
@ -11,7 +11,31 @@ import {
|
||||
export default defineConfig({
|
||||
presets: [presetMini({ dark: "class" }), presetAttributify(), presetUno()],
|
||||
transformers: [transformerDirectives(), transformerVariantGroup()],
|
||||
exclude: [`${__dirname}/node_modules/**/*`],
|
||||
// unocss默认不扫描 node_modules、dist、css以及其扩展 具体实现:https://github.com/unocss/unocss/blob/03c8abe8f5020b3baaed3dfbfe8e2258dd041a7e/packages/vite/src/utils.ts#L3
|
||||
exclude: [
|
||||
"node_modules",
|
||||
"dist",
|
||||
".git",
|
||||
".github",
|
||||
".husky",
|
||||
".vscode",
|
||||
"build",
|
||||
"locales",
|
||||
"mock",
|
||||
"public",
|
||||
"types",
|
||||
".eslintrc.js",
|
||||
".prettierrc.js",
|
||||
"postcss.config.js",
|
||||
"stylelint.config.js",
|
||||
"commitlint.config.js",
|
||||
"README.md",
|
||||
"CHANGELOG.md",
|
||||
"README.en-US.md",
|
||||
"CHANGELOG.en_US.md",
|
||||
"CHANGELOG.zh_CN.md",
|
||||
/\.(css|postcss|sass|scss|less|stylus|styl)$/
|
||||
],
|
||||
shortcuts: {
|
||||
"bg-dark": "bg-bg_color",
|
||||
"wh-full": "w-full h-full",
|
Loading…
x
Reference in New Issue
Block a user