Skip to content

Commit 3503967

Browse files
committed
core: 修改打包配置
1 parent 51e05e7 commit 3503967

File tree

3 files changed

+491
-7
lines changed

3 files changed

+491
-7
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"vue-ba": "^1.2.8"
1313
},
1414
"devDependencies": {
15+
"@types/estree": "^0.0.51",
16+
"@types/node": "^17.0.21",
17+
"@types/webpack": "^5.28.0",
1518
"@vitejs/plugin-vue": "^2.2.0",
1619
"stylus": "^0.56.0",
1720
"stylus-loader": "^6.2.0",

vite.config.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { defineConfig } from 'vite'
2-
import vue from '@vitejs/plugin-vue'
3-
import DefineOptions from 'unplugin-vue-define-options/vite'
1+
import { defineConfig } from "vite";
2+
import vue from "@vitejs/plugin-vue";
3+
import DefineOptions from "unplugin-vue-define-options/vite";
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7-
plugins: [vue(), DefineOptions()]
8-
})
7+
base: "./",
8+
plugins: [vue(), DefineOptions()],
9+
});

0 commit comments

Comments
 (0)