| 1234567891011121314151617181920212223242526 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- lintOnSave: false,
- // 公共路径配置为绝对路径,确保从根路径加载静态资源
- publicPath: '/',
- // 输出目录
- outputDir: 'dist',
- // 静态资源目录
- assetsDir: 'static',
- devServer: {
- port: 7627,
- // 开发环境代理后端API
- proxy: {
- '/api': {
- target: 'http://localhost:7626',
- changeOrigin: true
- }
- }
- }
- })
|