init
This commit is contained in:
48
vue.config.js
Normal file
48
vue.config.js
Normal file
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://aidex.vip All rights reserved.
|
||||
*/
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
devServer: {
|
||||
port : 8082,
|
||||
disableHostCheck : true,
|
||||
proxy : {
|
||||
"/api" : {
|
||||
target : "http://183.230.235.66:11010",
|
||||
// target : "http://127.0.0.1:8080",
|
||||
changeOrigin : true,
|
||||
secure : false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
productionSourceMap: false,
|
||||
}
|
||||
|
||||
// module.exports = {
|
||||
// /* 部署生产环境和开发环境下的URL:可对当前环境进行区分,baseUrl 从 Vue CLI 3.3 起已弃用,要使用publicPath */
|
||||
// publicPath: "",
|
||||
// assetsDir: "static/lipin",
|
||||
// outputDir: "dist",
|
||||
// runtimeCompiler: true,
|
||||
// productionSourceMap: false,
|
||||
// /* webpack-dev-server 相关配置 */
|
||||
// devServer: {
|
||||
// /* 自动打开浏览器 */
|
||||
// open: true,
|
||||
// /* 设置为0.0.0.0则所有的地址均能访问 */
|
||||
// host: devHost,
|
||||
// port: devPort,
|
||||
// https: false,
|
||||
// hotOnly: false,
|
||||
// /* 使用代理 */
|
||||
// proxy: {
|
||||
// '/': {
|
||||
// /* 目标代理服务器地址 */
|
||||
// target: proxy.target,
|
||||
// /* 允许跨域 */
|
||||
// changeOrigin: proxy.changeOrigin,
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// }
|
Reference in New Issue
Block a user