1 Star 0 Fork 0

wubin/toolbox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
wubin 提交于 2020-11-16 00:33 . first init app
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: '/',
runtimeCompiler: true,
devServer: {
port: 8090,
overlay: {
warnings: false,
errors: false
},
proxy: {
'/api': {
target: 'http://v.juhe.cn/',
changeOrigin: true,
ws: true,
secure: false,
pathRewrite: {
'^/api': ''
}
}
}
},
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
.set('lib', resolve('src/lib'))
.set('views', resolve('src/views'))
.set('config', resolve('src/config'))
.set('services', resolve('src/services'))
.set('components', resolve('src/components'))
},
lintOnSave: false,
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
win: {
icon: './public/app.ico'
},
mac: {
icon: './public/app.png'
},
productName: '工具箱',
nsis: {
oneClick: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
createDesktopShortcut: true,
createStartMenuShortcut: true
},
extends: null,
compression: 'maximum'
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/wubinbinbin/toolbox.git
git@gitee.com:wubinbinbin/toolbox.git
wubinbinbin
toolbox
toolbox
master

搜索帮助