Skip to content

Commit a420aa5

Browse files
authored
Update vite.config.js
1 parent ce6d22d commit a420aa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import vueJsx from "@vitejs/plugin-vue2-jsx";
55

66
// https://vite.dev/config/
77
export default defineConfig({
8+
base: "",
89
plugins: [vueJsx(), vue()],
910
server: {
1011
port: 8080,
@@ -14,7 +15,7 @@ export default defineConfig({
1415
outDir: path.resolve(__dirname, "dist/public"),
1516
rollupOptions: {
1617
// input: path.resolve(__dirname, "src-frontend/index.html"), // 指定入口 HTML 文件
17-
18+
1819
output: {
1920
entryFileNames: "js/[name]-[hash].js",
2021
chunkFileNames: "js/[name]-[hash].js",

0 commit comments

Comments
 (0)