@dlzn-ui/vite-config 1.68.0 → 1.70.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/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -156,7 +156,7 @@ const tDesignAutoImportResolve = (options) => {
|
|
|
156
156
|
const VIRTUAL_ID = "virtual:dlzn-ui/app-params";
|
|
157
157
|
const RESOLVED_ID = `\0${VIRTUAL_ID}`;
|
|
158
158
|
const virtualAppParams = (options) => {
|
|
159
|
-
const userFile = resolve(options.root, options.appParamsFile ?? "app-params.ts");
|
|
159
|
+
const userFile = resolve(options.root, options.appParamsFile ?? "src/app-params.ts");
|
|
160
160
|
const viewsGlob = options.viewsGlob ?? "@/views/**/index.vue";
|
|
161
161
|
return {
|
|
162
162
|
buildStart() {
|
|
@@ -177,7 +177,7 @@ const virtualAppParams = (options) => {
|
|
|
177
177
|
|
|
178
178
|
export default {
|
|
179
179
|
...user,
|
|
180
|
-
viewsEntryLazyImport: import.meta.glob(${JSON.stringify(viewsGlob)}),
|
|
180
|
+
// viewsEntryLazyImport: import.meta.glob(${JSON.stringify(viewsGlob)}),
|
|
181
181
|
}
|
|
182
182
|
`;
|
|
183
183
|
},
|
|
@@ -448,7 +448,6 @@ const index = (_env, options) => {
|
|
|
448
448
|
},
|
|
449
449
|
// envDir, // 将 env 文件里面的变量注入到 import.meta.env 里面
|
|
450
450
|
optimizeDeps: {
|
|
451
|
-
exclude: ["dlzn-ui"],
|
|
452
451
|
include: [
|
|
453
452
|
"tdesign-vue-next/dist/tdesign.min.js",
|
|
454
453
|
"path-browserify",
|
|
@@ -483,7 +482,8 @@ const index = (_env, options) => {
|
|
|
483
482
|
"element-plus/es/locale/lang/zh-cn",
|
|
484
483
|
"element-plus/es/components/date-picker/style/css",
|
|
485
484
|
"element-plus/es/components/scrollbar/style/css",
|
|
486
|
-
"color"
|
|
485
|
+
"color",
|
|
486
|
+
"dlzn-ui"
|
|
487
487
|
]
|
|
488
488
|
},
|
|
489
489
|
plugins: [
|
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.70.0",
|
|
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": "1.
|
|
40
|
+
"@dlzn-ui/node-utils": "1.70.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"rimraf": "^6.1.3",
|