Commit 7ac03234 by zhangxingmin

push

parent 08b077fa
// vite.config.js
import { defineConfig } from 'vite'
import { createVuePlugin } from 'vite-plugin-vue2' // 引入 Vue 2 插件
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'
export default defineConfig({
plugins: [createVuePlugin()], // 启用 Vue 2 插件
build: {
target: 'es2015', // 兼容旧浏览器
outDir: 'dist' // 构建输出目录(与 Docker 同步)
},
server: {
host: '0.0.0.0', // 允许容器内访问开发服务器
port: 5173
plugins: [createVuePlugin()],
resolve: {
extensions: ['.vue', '.js', '.json'],
alias: {
'@': path.resolve(__dirname) // 指向项目根目录
}
}
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment