1 Star 0 Fork 10

retwert/h5-vant

forked from chentaoxm/h5-vant 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 931 Bytes
一键复制 编辑 原始数据 按行查看 历史
chentaoxm 提交于 2023-03-28 10:31 . 更改lintOnSave配置
const {
defineConfig
} = require('@vue/cli-service')
const bundleAnalyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false, //关闭eslint语法检测
devServer: {
host: 'localhost',
port: 8080,
hot: true,
https: false,
proxy: { //配置多个代理
"/testIp": {
target: "http://197.0.0.1:8088",
changeOrigin: true,
ws: true,//websocket支持
secure: false,
pathRewrite: {
"^/testIp": "/"
}
},
"/elseIp": {
target: "http://197.0.0.2:8088",
changeOrigin: true,
//ws: true,//websocket支持
secure: false,
pathRewrite: {
"^/elseIp": "/"
}
},
}
},
configureWebpack:config=>{
config.plugins.push(
new bundleAnalyzer()
)
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/retwert/h5-vant.git
[email protected]:retwert/h5-vant.git
retwert
h5-vant
h5-vant
master

搜索帮助