1 Star 0 Fork 0

wuchan / 招聘网_九月

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
wuchan 提交于 2020-09-02 17:40 . 00
/**
* vue-cli rc3.0配置项
* https://cli.vuejs.org/config
*/
const path = require('path');
module.exports = {
// 应用程序将部署的base URL
publicPath: './',
// 编译打包后的输出目录
outputDir: 'dist',
// 编译打包后的静态资源目录
assetsDir: 'assets',
// 应用程序入口文件生成配置,支持多文件,至少包含应用入口
pages: {
index: {
// 应用入口
entry: 'src/main.js',
// 模板文件
template: 'public/index.html',
// 应用程序入口
filename: 'index.html'
}
},
// souce map
productionSourceMap: false,
// merge webpack config
configureWebpack: {
resolve: {
extensions: ['.js', '.json', '.vue', '.scss', '.css'],
alias: {
'~P': path.join(__dirname, 'public'), // ./public
'@': path.join(__dirname, 'src'), // ./src
'~V': path.join(__dirname, 'src/views'), // ./src/views
'~C': path.join(__dirname, 'src/components'), // ./src/components
'~A': path.join(__dirname, 'src/assets') // ./src/assets
}
}
},
// 本地服务
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
host: '0.0.0.0',
port: 4096,
hot: true,
open: true,
// 代理配置
proxy: {
'/tc_web': {
target: 'http://192.168.4.49:9999',
ws: false,
sesure: true,
changeOrigin: true,
pathRewrite: {
'^/tc_web': '/tc_web'
}
},
'/tc_web': {
target: 'http://120.224.63.201:8082',
ws: false,
sesure: true,
changeOrigin: true,
pathRewrite: {
'^/tc_web': '/tc_web'
}
}
}
}
};
1
https://gitee.com/wwwchan/recruitment-network-september.git
git@gitee.com:wwwchan/recruitment-network-september.git
wwwchan
recruitment-network-september
招聘网_九月
master

搜索帮助