@gct-paas/build 0.1.19 → 0.1.20
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/CHANGELOG.md
CHANGED
|
@@ -29,8 +29,11 @@ function defineUnoConfig(config) {
|
|
|
29
29
|
},
|
|
30
30
|
presets: [(0, _unocss.presetWind3)(), (0, _unocss.presetTypography)(), (0, _unocss.presetWebFonts)({})],
|
|
31
31
|
content: {
|
|
32
|
+
// 生产构建时 @gct-paas/* 为 external,不会进入 Vite pipeline,
|
|
33
|
+
// 需通过 filesystem 从 es 产物中提取 UnoCSS 工具类
|
|
34
|
+
filesystem: ["node_modules/@gct-paas/**/es/**/*.mjs"],
|
|
32
35
|
pipeline: {
|
|
33
|
-
include: [/\.(vue|[jt]sx?|mjs)($|\?)
|
|
36
|
+
include: [/\.(vue|[jt]sx?|mjs)($|\?)/]
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
}, config));
|
|
@@ -30,11 +30,11 @@ export function defineUnoConfig(config) {
|
|
|
30
30
|
},
|
|
31
31
|
presets: [presetWind3(), presetTypography(), presetWebFonts({})],
|
|
32
32
|
content: {
|
|
33
|
+
// 生产构建时 @gct-paas/* 为 external,不会进入 Vite pipeline,
|
|
34
|
+
// 需通过 filesystem 从 es 产物中提取 UnoCSS 工具类
|
|
35
|
+
filesystem: ["node_modules/@gct-paas/**/es/**/*.mjs"],
|
|
33
36
|
pipeline: {
|
|
34
|
-
include: [
|
|
35
|
-
/\.(vue|[jt]sx?|mjs)($|\?)/,
|
|
36
|
-
"node_modules/@gct-paas/**/es/**/*.{mjs,js,ts,tsx,vue}"
|
|
37
|
-
]
|
|
37
|
+
include: [/\.(vue|[jt]sx?|mjs)($|\?)/]
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
},
|