nbb-component-ui 1.6.7 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/uno.config.ts +16 -0
package/package.json
CHANGED
package/uno.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig, presetUno } from 'unocss'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
presets: [
|
|
5
|
+
presetUno(), // 核心预设,支持所有 UnoCSS 原子类
|
|
6
|
+
],
|
|
7
|
+
|
|
8
|
+
// 🔥 关键:让 UnoCSS 扫描你的组件,生成样式
|
|
9
|
+
content: {
|
|
10
|
+
pipeline: {
|
|
11
|
+
include: [
|
|
12
|
+
/\.(vue)($|\?)/, // 扫描所有 .vue 文件
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
})
|