'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: { '/api': { // target: 'http://10.8.0.3:8000', // 翟毅飞 // target: 'http://192.168.1.77:8002', //曹世祥本地服务 // target: 'http://192.168.1.20:8000', // 范玉虎本地服务 // target: 'http://192.168.2.132:8000', // 闫自林本地服务1 // target: 'http://192.168.0.120:8006', //jiake // target: 'http://192.168.1.76:8000', //杨明明本地服务 // target: 'http://192.168.2.183:8006', //孙加可本地服务 // target: 'http://192.168.2.161:8003', // 闫自林本地服务2 // target: 'http://8.136.98.49:8002', // 正式线上服务 // target: 'http://hnyfwlw.com:8002', // 线上服务 target: 'http://47.110.79.22:9000', // 宁录线上服务 // target: 'https://web.hnyfwlw.com:58002', //线上服务 changeOrigin: true, pathRewrite: { '^/api': '/api' // 重写接口 } }, '/shuLianApi': { target: 'http://8.136.98.49:58008', // 数联预警 changeOrigin: true, pathRewrite: { '^/shuLianApi': '/api' // 重写接口 } }, '/search': { target: 'http://www.yfzhwlw.com', // 线上服务 changeOrigin: true, pathRewrite: { '^/search': '/search' // 重写接口 } }, '/qxz_config': { target: 'http://192.168.2.157:8003', // // target: 'http://192.168.1.52:10001', // // target: 'http://192.168.0.36:8008', // changeOrigin: true, pathRewrite: { '^/qxzconfig': '/qxzconfig' // 重写接口 } } }, // Various Dev Server settings host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined // autoOpenBrowser: false, autoOpenBrowser: true, errorOverlay: true, notifyOnErrors: true, poll: false, // https://webpack.sjs.org/configuration/dev-server/#devserver-watchoptions- // Use Eslint Loader? // If true, your code will be linted during bundling and // linting errors and warnings will be shown in the console. useEslint: true, // If true, eslint errors and warnings will also be shown in the error overlay // in the browser. showEslintErrorsInOverlay: false, /** * Source Maps */ // https://webpack.js.org/configuration/devtool/#development devtool: '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'), // F:\project\bigdata_vue_frond\dist // F:\project\bigdata_vue\product\bigdata2\dist // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: '/', /** * Source Maps */ productionSourceMap: false, // 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 } };