代码拉取完成,页面将自动刷新
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'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。