1234567891011121314151617 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- // 关闭语法检测
- lintOnSave: false,
- // 代理服务器 解决跨域问题
- devServer:{
- port: 8080,
- proxy:{
- "api":{
- target:"http://localhost:8888",
- pathRewrite:{"^/api":""}
- }
- }
- },
- })
|