vue_lic端口号在哪里配置?
config/index.js配置文件:定义开发环境和生产环境所需的参数
// see http://vuejs-templates.github.io/webpack for documentation.
varpath = require('path')
module.exports = {
build: {
sitEnv:require('./sit.env'),
prodEnv:require('./prod.env'),
index:path.resolve(__dirname,'../dist/index.html'),
assetsRoot:path.resolve(__dirname,'../dist'),
assetsSubDirectory:'static',
assetsPublicPath:'./',//请根据自己路径配置更改
productionSourceMap:false,
productionGzip:false,
productionGzipExtensions: ['js','css'],
bundleAnalyzerReport:process.env.npm_config_report
},
dev: {
env:require('./dev.env'),
port:8080,// 修改启动端口号
autoOpenBrowser:true,
assetsSubDirectory:'static',
assetsPublicPath:'/',
proxyTable: {// 开发中,api接口的请求地址
'/api':{
target:'http://localhost:8011',
pathRewrite: {
'^/api':'/api'
},
}
},
cssSourceMap:false
}
}