@dlzn-ui/vite-config 2.0.10 → 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 +29 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -82,7 +82,8 @@ const optimizeDepsInclude = [
82
82
  "dlzn-ui/router",
83
83
  "dlzn-ui/store",
84
84
  "dlzn-ui/views/system/user/index",
85
- "dlzn-ui/plugins/echarts"
85
+ "dlzn-ui/plugins/echarts",
86
+ "dlzn-ui/main"
86
87
  ];
87
88
 
88
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"];
@@ -474,6 +475,33 @@ const index = (_env, options) => {
474
475
  // 相对消费方 root,closeBundle 整理 HTML 时比绝对路径更稳
475
476
  // template: 'node_modules/dlzn-ui/index.html',
476
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
+ },
477
505
  VueRouter({
478
506
  dts: "types/typed-router.d.ts"
479
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.10",
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.10"
40
+ "@dlzn-ui/node-utils": "2.0.11"
41
41
  },
42
42
  "devDependencies": {
43
43
  "rimraf": "^6.1.3",