| | |
| | | // see http://vuejs-templates.github.io/webpack for documentation. |
| | | |
| | | const path = require("path"); |
| | | let url = 'http://192.168.0.130:8081' |
| | | |
| | | module.exports = { |
| | | dev: { |
| | |
| | | assetsSubDirectory: "static", // 编译输出的二级目录 |
| | | assetsPublicPath: "/", // 编译发布的根目录,可配置为资源服务器域名或 CDN 域名 |
| | | proxyTable: { |
| | | "/api": { |
| | | target: "", |
| | | "/": { |
| | | target: url, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | "^/api": "" |
| | | "^/": "" |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // Various Dev Server settings |
| | | host: "localhost", // can be overwritten by process.env.HOST |
| | | host: "0.0.0.0", // can be overwritten by process.env.HOST |
| | | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
| | | autoOpenBrowser: false, |
| | | errorOverlay: true, |