1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- // see http://vuejs-templates.github.io/webpack for documentation.
- var path = require('path')
- module.exports = {
- build: {
- prodEnv: require('./prod.env'),
- index: path.resolve(__dirname, '../kjjg/index.html'),
- assetsRoot: path.resolve(__dirname, '../kjjg'),
- assetsSubDirectory: 'static',
- assetsPublicPath: './', //请根据自己路径配置更改
- productionSourceMap: false,
- // 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: false,
- 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
- },
- dev: {
- // host: '192.168.1.107', // can be overwritten by process.env.HOST
- host: 'localhost',
- env: require('./dev.env'),
- port: 9527,
- autoOpenBrowser: true,
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable: {
- '/api': {
- // target:'http://10.100.1.135:8081',
- // target: 'http://111.56.38.145:9090',//内蒙
- // target: 'http://111.164.113.172:9090',//天津
- target: 'http://172.16.0.72:8888',
- // target: 'http://10.153.42.138:8888',//李调全
- // target: 'http://10.223.3.39:9090/api/kjjg',
- // target: 'http://10.153.42.133:8888',//刘
- secure: false, // 如果是https接口,需要配置这个参数
- changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
- pathRewrite: {
- '^/api': ''
- },
- },
- '/kjdepot': {
- // target:'http://10.100.1.135:8081',
- // target: 'http://111.56.38.145:9090',//内蒙
- // target: 'http://111.164.113.172:9090',//天津
- target: 'http://172.16.0.73:8889',
- // target: 'http://localhost:8889',
- // target: 'http://10.223.3.39:9090/api/kjjg',
- secure: false, // 如果是https接口,需要配置这个参数
- changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
- pathRewrite: {
- '^/kjdepot': ''
- },
- },
- '/cbl': {
- // target:'http://10.100.1.135:8081',
- // target: 'http://111.56.38.145:9090',//内蒙
- // target: 'http://111.164.113.172:9090',//天津
- target: 'http://101.36.160.140:8097',
- secure: false, // 如果是https接口,需要配置这个参数
- changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
- pathRewrite: {
- '^/cbl': ''
- },
- },
- },
- // CSS Sourcemaps off by default because relative paths are "buggy"
- // with this option, according to the CSS-Loader README
- // (https://github.com/webpack/css-loader#sourcemaps)
- // In our experience, they generally work as expected,
- // just be aware of this issue when enabling this option.
- cssSourceMap: false
- }
- };
|