Commit 7ac03234 by zhangxingmin

push

parent 08b077fa
// vite.config.js
import { defineConfig } from 'vite' 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({ export default defineConfig({
plugins: [createVuePlugin()], // 启用 Vue 2 插件 plugins: [createVuePlugin()],
build: { resolve: {
target: 'es2015', // 兼容旧浏览器 extensions: ['.vue', '.js', '.json'],
outDir: 'dist' // 构建输出目录(与 Docker 同步) alias: {
}, '@': path.resolve(__dirname) // 指向项目根目录
server: { }
host: '0.0.0.0', // 允许容器内访问开发服务器
port: 5173
} }
}) })
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