22 Star 50 Fork 36

带投大哥 / cjlgb-design-oauth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 846 Bytes
一键复制 编辑 原始数据 按行查看 历史
带投大哥 提交于 2020-07-22 00:13 . 环境配置
const webpack = require('webpack');
module.exports = {
publicPath: process.env.APP_PUBLIC_PATH,
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
}
},
configureWebpack: {
plugins: [
// 忽略moment.js的所有区域设置文件
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
],
},
// 跨域配置
devServer: {
port: 8001,
host: 'cjlgb-design-oauth',
// 关闭Host检查
disableHostCheck: true,
proxy: {
'/apis': {
target: 'http://cjlgb-design-gateway:10001',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/apis': ''
}
}
}
}
};
JavaScript
1
https://gitee.com/dtdage/cjlgb-design-oauth.git
git@gitee.com:dtdage/cjlgb-design-oauth.git
dtdage
cjlgb-design-oauth
cjlgb-design-oauth
master

搜索帮助