一个新vue项目基本配置

1.屏蔽eslint配置

webpack.base.conf中注释

// ...(config.dev.useEslint ? [createLintingRule()] : []),
 
2.conf中index配置代理
proxyTable: {
'/api': {
// target: 'http://monitor.hndm168.com/', // 设置你调用的接口域名和端口号
target: 'http://localhost:8088/', // 设置你调用的接口域名和端口号
changeOrigin: true, // 跨域
}
},
 
3.打包配置map
productionSourceMap: false,

猜你喜欢

转载自www.cnblogs.com/sdbq/p/10322799.html