@dlzn-ui/vite-config 2.0.5 → 2.0.7
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/dist/index.mjs +33 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -75,13 +75,17 @@ const optimizeDepsInclude = [
|
|
|
75
75
|
"dayjs/plugin/customParseFormat.js",
|
|
76
76
|
"dayjs/plugin/isSameOrBefore.js",
|
|
77
77
|
"wordcloud",
|
|
78
|
+
"tdesign-vue-next",
|
|
78
79
|
"@tdesign-vue-next/chat",
|
|
79
80
|
"dompurify",
|
|
80
81
|
"dlzn-ui/hooks/useContextMenu/menu",
|
|
81
82
|
"dlzn-ui/plugins/directive",
|
|
82
83
|
"dlzn-ui/plugins/initialize",
|
|
84
|
+
"dlzn-ui/constants",
|
|
83
85
|
"dlzn-ui/router",
|
|
84
|
-
"dlzn-ui/store"
|
|
86
|
+
"dlzn-ui/store",
|
|
87
|
+
"dlzn-ui/views/system/user/index",
|
|
88
|
+
"dlzn-ui/plugins/echarts"
|
|
85
89
|
];
|
|
86
90
|
|
|
87
91
|
const dirs = ["app", "button", "card", "checkbox", "checkbox-group", "cron", "custom-page-list", "custom-page-table", "date-picker", "form", "gradient-text", "icon", "image", "image-viewer", "input", "input-number", "link", "overview", "page-list", "page-query", "page-table", "pagination", "popconfirm", "popup", "provider", "radio-group", "range-input", "scrollbar", "select", "select-sys-user", "slider", "switch", "tab-panel", "table", "tag", "tag-input", "textarea", "tree", "tree-select", "upload"];
|
|
@@ -149,9 +153,36 @@ const virtualAppParams = () => {
|
|
|
149
153
|
import layoutsEntryLazyImport from "@/layout/index.ts"
|
|
150
154
|
import viewsEntryLazyImport from "@/views/index.ts"
|
|
151
155
|
|
|
156
|
+
const asideTopLogoUrl = Object.values(
|
|
157
|
+
import.meta.glob('img/aside_top_logo.*', {
|
|
158
|
+
eager: true,
|
|
159
|
+
import: 'default',
|
|
160
|
+
query: '?url',
|
|
161
|
+
}),
|
|
162
|
+
)[0] as string | undefined
|
|
163
|
+
|
|
164
|
+
const loginLeftBannerUrl = Object.values(
|
|
165
|
+
import.meta.glob('img/login_left_banner.*', {
|
|
166
|
+
eager: true,
|
|
167
|
+
import: 'default',
|
|
168
|
+
query: '?url',
|
|
169
|
+
}),
|
|
170
|
+
)[0] as string | undefined
|
|
171
|
+
|
|
172
|
+
const loginTopLeftLogoUrl = Object.values(
|
|
173
|
+
import.meta.glob('img/login_top_left_logo.*', {
|
|
174
|
+
eager: true,
|
|
175
|
+
import: 'default',
|
|
176
|
+
query: '?url',
|
|
177
|
+
}),
|
|
178
|
+
)[0] as string | undefined
|
|
179
|
+
|
|
152
180
|
export default {
|
|
153
181
|
layoutsEntryLazyImport,
|
|
154
182
|
viewsEntryLazyImport,
|
|
183
|
+
asideTopLogoUrl,
|
|
184
|
+
loginLeftBannerUrl,
|
|
185
|
+
loginTopLeftLogoUrl,
|
|
155
186
|
...user,
|
|
156
187
|
}
|
|
157
188
|
`;
|
|
@@ -429,9 +460,7 @@ const index = (_env, options) => {
|
|
|
429
460
|
// envParse({
|
|
430
461
|
// dtsPath: 'types/env.d.ts',
|
|
431
462
|
// }),
|
|
432
|
-
virtualAppParams(
|
|
433
|
-
root: options.root
|
|
434
|
-
}),
|
|
463
|
+
virtualAppParams(),
|
|
435
464
|
createHtmlPlugin({
|
|
436
465
|
entry: "/src/main.ts",
|
|
437
466
|
// 必须绝对路径,否则类似system/log/operlog 二级页面打不开
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlzn-ui/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vite-plugin-imagemin": "^0.6.1",
|
|
38
38
|
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
39
39
|
"vue-router": "^5.2.0",
|
|
40
|
-
"@dlzn-ui/node-utils": "2.0.
|
|
40
|
+
"@dlzn-ui/node-utils": "2.0.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"rimraf": "^6.1.3",
|