'use strict' // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { '/onemap': { target: 'http://60.191.110.206:48014/onemap/', // target: 'http://localhost:8802/onemap/', changeOrigin: true, pathRewrite: { '^/onemap': '' } }, '/prod-api': { target: 'http://localhost:8085/', // target: 'http://60.191.110.206:48014/prod-api/', changeOrigin: true, pathRewrite: { '^/prod-api': '' } }, '/back': { target: 'http://localhost:8807/', changeOrigin: true, pathRewrite: { '^/back': '' } }, '/camera': { target: 'http://10.1.1.110:1082/web/open/api/v1/res/camera/', changeOrigin: true, pathRewrite: { '^/camera': '' } }, '/wisdomcenter': { target: 'http://localhost:8805/wisdomcenter/', changeOrigin: true, pathRewrite: { '^/wisdomcenter': '' } }, '/arcserver_host': { // target: 'http://60.191.110.206:48029', // target: 'http://localhost:6080/', target: 'http://10.101.37.25:6080', // target: 'http://2.20.12.108:8080/arcserver_host/', changeOrigin: true, pathRewrite: { '^/arcserver_host': '' } }, '/arcgis_host': { target: 'http://60.191.110.206:36080/', // target: 'http://10.101.37.25:6080', // target: 'http://2.20.12.108:8080/arcgis_host/', // target: 'http://localhost:6080/', changeOrigin: true, pathRewrite: { '^/arcgis_host': '' } }, '/3dHost': { // target: 'http://60.191.110.206:48014/3dHost', target: 'http://localhost:3001/', changeOrigin: false, pathRewrite: { '^/3dHost': '' } }, '/quartz': { target: 'http://10.101.37.13:9051/', changeOrigin: false, pathRewrite: { '^/quartz': '' } }, '/LoginApi': { target: 'http://114.215.200.79:6030/LoginApi/', changeOrigin: false, pathRewrite: { '^/LoginApi': '' } }, '/analyse': { target: 'http://10.101.37.13:8882/Analysis.svc/', changeOrigin: false, pathRewrite: { '^/analyse': '' } }, '/socket': { //webSocket代理 target: 'ws://10.101.37.13:9050/socket', // 内网 /*target: 'ws://你的服务器地址/parkingServer', // 外网*/ /*target: 'ws://你的服务器地址/parkingServer',//本地测试*/ ws:true,//开启ws, 如果是http代理此处可以不用设置 changeOrigin: true, pathRewrite: { '^/socket': '/' } }, }, // Various Dev Server settings 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, notifyOnErrors: true, poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- /** * Source Maps */ // https://webpack.js.org/configuration/devtool/#development devtool: 'cheap-module-eval-source-map', // If you have problems debugging vue-files in devtools, // set this to false - it *may* help // https://vue-loader.vuejs.org/en/options.html#cachebusting cacheBusting: true, cssSourceMap: true }, build: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: '/', /** * Source Maps */ productionSourceMap: true, // https://webpack.js.org/configuration/devtool/#production devtool: '#source-map', // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. // Before setting to `true`, make sure to: // npm install --save-dev compression-webpack-plugin productionGzip: true, productionGzipExtensions: ['js', 'css'], // Run the build command with an extra argument to // View the bundle analyzer report after build finishes: // `npm run build --report` // Set to `true` or `false` to always turn it on or off bundleAnalyzerReport: process.env.npm_config_report } }