Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 55fd18a

Browse files
committed
fix: inject
Signed-off-by: Innei <i@innei.in>
1 parent bda51a5 commit 55fd18a

4 files changed

Lines changed: 35 additions & 14 deletions

File tree

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<!-- ENV INJECT -->
1717
<!-- MX SPACE ADMIN DASHBOARD VERSION INJECT -->
1818
<!-- injectable script -->
19+
<script src="./node_modules/vue/dist/vue.global.js"></script>
20+
<script src="./node_modules/vue-router/dist/vue-router.global.js"></script>
21+
<script src="./node_modules/vue-demi/lib/index.iife.js"></script>
22+
<script src="./node_modules/@vueuse/shared/index.iife.min.js"></script>
23+
<script src="./node_modules/@vueuse/core/index.iife.min.js"></script>
24+
<script src="./node_modules/@vueuse/components/index.iife.min.js"></script>
1925
</head>
2026

2127
<body>

library-external.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import randomstring from 'randomstring'
22
import { viteExternalsPlugin as ViteExternals } from 'vite-plugin-externals'
3-
import { createHtmlPlugin as VitePluginHtml } from 'vite-plugin-html'
4-
import { viteStaticCopy as ViteStaticCopy } from 'vite-plugin-static-copy'
53
import type { HtmlTagDescriptor } from 'vite'
64
import type { Target } from 'vite-plugin-static-copy'
75

@@ -87,17 +85,15 @@ export const setupLibraryExternal = (
8785
'@vueuse/router': 'VueUse',
8886
'vue-demi': 'VueDemi',
8987
}),
90-
ViteStaticCopy({
91-
targets: staticTargets,
92-
}),
93-
VitePluginHtml({
94-
minify: false,
95-
inject: {
96-
tags: injectTags,
97-
// data: {
98-
// entry,
99-
// },
100-
},
101-
}),
88+
// ViteStaticCopy({
89+
// targets: staticTargets,
90+
// }),
91+
// VitePluginHtml({
92+
// minify: false,
93+
// inject: {
94+
// tags: injectTags,
95+
96+
// },
97+
// }),
10298
]
10399
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696
"@vitejs/plugin-vue": "5.0.2",
9797
"@vitejs/plugin-vue-jsx": "3.1.0",
9898
"@vue/compiler-sfc": "3.4.3",
99+
"@vueuse/components": "10.7.1",
100+
"@vueuse/shared": "10.7.1",
99101
"cors": "2.8.5",
100102
"eslint": "^8.56.0",
101103
"postcss": "8.4.32",

pnpm-lock.yaml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)