@dlzn-ui/vite-config 2.0.8 → 2.0.11

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.
Files changed (2) hide show
  1. package/dist/index.mjs +30 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -64,13 +64,10 @@ const baseConfigFn = (options) => {
64
64
  const dirs$1 = ["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"];
65
65
  const optimizeDepsInclude = [
66
66
  ...dirs$1.map((str) => `dlzn-ui/components/${str}`),
67
- "tdesign-vue-next/dist/tdesign.min.js",
68
67
  "lodash-es",
69
68
  "alova",
70
69
  "alova/fetch",
71
70
  "alova/vue",
72
- "@formkit/auto-animate",
73
- "@formkit/auto-animate/vue",
74
71
  "dayjs",
75
72
  "dayjs/plugin/customParseFormat.js",
76
73
  "dayjs/plugin/isSameOrBefore.js",
@@ -85,7 +82,8 @@ const optimizeDepsInclude = [
85
82
  "dlzn-ui/router",
86
83
  "dlzn-ui/store",
87
84
  "dlzn-ui/views/system/user/index",
88
- "dlzn-ui/plugins/echarts"
85
+ "dlzn-ui/plugins/echarts",
86
+ "dlzn-ui/main"
89
87
  ];
90
88
 
91
89
  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"];
@@ -470,13 +468,40 @@ const index = (_env, options) => {
470
468
  title: VITE_APP_NAME
471
469
  },
472
470
  ejsOptions: {
473
- views: ["node_modules/dlzn-ui/ejs"]
471
+ views: ["node_modules/dlzn-ui/assets/ejs"]
474
472
  }
475
473
  },
476
474
  minify: true
477
475
  // 相对消费方 root,closeBundle 整理 HTML 时比绝对路径更稳
478
476
  // template: 'node_modules/dlzn-ui/index.html',
479
477
  }),
478
+ {
479
+ apply: "build",
480
+ enforce: "post",
481
+ // 'assets/card-xk5rGrp1.css': {
482
+ // type: 'asset',
483
+ // fileName: 'assets/card-xk5rGrp1.css',
484
+ // originalFileName: null,
485
+ // originalFileNames: [],
486
+ // source: [Getter],
487
+ // name: 'card.css',
488
+ // names: [
489
+ // 'card.css'
490
+ // ],
491
+ // viteMetadata: {
492
+ // importedAssets: Set(0) {},
493
+ // importedCss: Set(0) {}
494
+ // }
495
+ // },
496
+ generateBundle(_, bundle) {
497
+ for (const [fileName, item] of Object.entries(bundle)) {
498
+ if (fileName.endsWith("index.html")) {
499
+ item.fileName = "index.html";
500
+ }
501
+ }
502
+ },
503
+ name: "dlzn-ui:flatten-index-html"
504
+ },
480
505
  VueRouter({
481
506
  dts: "types/typed-router.d.ts"
482
507
  }),
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.8",
4
+ "version": "2.0.11",
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.8"
40
+ "@dlzn-ui/node-utils": "2.0.11"
41
41
  },
42
42
  "devDependencies": {
43
43
  "rimraf": "^6.1.3",