@dlzn-ui/vite-config 1.56.0 → 1.58.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 +7 -5
- package/package.json +3 -3
- /package/{modules/aliasElementPlus.ts → aliasElementPlus.ts} +0 -0
- /package/{modules/autoImportStores.ts → autoImportStores.ts} +0 -0
- /package/{modules/devSaveFolderAlias.ts → devSaveFolderAlias.ts} +0 -0
- /package/{modules/tDesignResolve.ts → tDesignResolve.ts} +0 -0
- /package/{modules/vitePlugins.ts → vitePlugins.ts} +0 -0
package/index.ts
CHANGED
|
@@ -9,10 +9,10 @@ import { loadEnv, mergeConfig } from 'vite'
|
|
|
9
9
|
import { parseLoadedEnv } from 'vite-plugin-env-parse'
|
|
10
10
|
import { createHtmlPlugin } from 'vite-plugin-html'
|
|
11
11
|
import VueRouter from 'vue-router/vite'
|
|
12
|
-
import aliasElementPlus from './
|
|
13
|
-
import autoImportStoreList from './
|
|
14
|
-
import tDesignAutoImportResolve from './
|
|
15
|
-
import vitePlugins from './
|
|
12
|
+
import aliasElementPlus from './aliasElementPlus.ts'
|
|
13
|
+
import autoImportStoreList from './autoImportStores.ts'
|
|
14
|
+
import tDesignAutoImportResolve from './tDesignResolve.ts'
|
|
15
|
+
import vitePlugins from './vitePlugins.ts'
|
|
16
16
|
|
|
17
17
|
type Arrayable<T> = Array<T> | T
|
|
18
18
|
interface Options {
|
|
@@ -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.58.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vite-plugin-html": "^3.2.2",
|
|
28
28
|
"vite-plugin-imagemin": "^0.6.1",
|
|
29
29
|
"vue-router": "^5.2.0",
|
|
30
|
-
"@dlzn-ui/
|
|
31
|
-
"@dlzn-ui/
|
|
30
|
+
"@dlzn-ui/vite-config-base": "0.0.1",
|
|
31
|
+
"@dlzn-ui/build-utils": "0.0.1"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|