@dlzn-ui/vite-config 1.57.0 → 1.59.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/index.ts +3 -1
- package/package.json +6 -4
package/index.ts
CHANGED
|
@@ -91,7 +91,7 @@ export default (_env: ConfigEnv, options: Options): UserConfig => {
|
|
|
91
91
|
|
|
92
92
|
return mergeConfig(
|
|
93
93
|
baseConfigFn({
|
|
94
|
-
tailwindAutoReferenceEntry: '
|
|
94
|
+
tailwindAutoReferenceEntry: 'node_modules/dlzn-ui/assets/css/tailwindcss-entry.css',
|
|
95
95
|
}),
|
|
96
96
|
{
|
|
97
97
|
build: {
|
|
@@ -173,6 +173,8 @@ export default (_env: ConfigEnv, options: Options): UserConfig => {
|
|
|
173
173
|
},
|
|
174
174
|
},
|
|
175
175
|
minify: true,
|
|
176
|
+
// 相对消费方 root,closeBundle 整理 HTML 时比绝对路径更稳
|
|
177
|
+
template: 'node_modules/dlzn-ui/index.html',
|
|
176
178
|
}),
|
|
177
179
|
VueRouter({
|
|
178
180
|
dts: 'types/typed-router.d.ts',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlzn-ui/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.59.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -26,8 +26,10 @@
|
|
|
26
26
|
"vite-plugin-env-parse": "^1.0.15",
|
|
27
27
|
"vite-plugin-html": "^3.2.2",
|
|
28
28
|
"vite-plugin-imagemin": "^0.6.1",
|
|
29
|
-
"vue-router": "^5.2.0"
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
"vue-router": "^5.2.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@dlzn-ui/vite-config-base": "0.0.1",
|
|
33
|
+
"@dlzn-ui/build-utils": "0.0.1"
|
|
32
34
|
}
|
|
33
35
|
}
|