代码拉取完成,页面将自动刷新
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
pluginOptions:{
electronBuilder:{
customFileProtocol: "./",
publicPath: './',
assetsDir: "./",
nodeIntegration: true,
files: ['./node_modules'],
builderOptions: {
asar: true,
nsis: {
oneClick: false, // 是否一键安装
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
// installerIcon: '', // 安装图标
// uninstallerIcon: '', //卸载图标
// installerHeaderIcon: '', // 安装时头部图标
// shortcutName: '', // 图标名称
createDesktopShortcut: true,
createStartMenuShortcut: true
},
win: {
icon: './chessmate.ico', // 打包后的应用图标 public 目录下的图标 注意图标最小255 * 255,否则打包会报错
artifactName: 'Chessmate.${ext}', // 打包后的执行文件名称
// artifactName: 'chain-desktop_setup_${version}.${ext}', // 打包后的安装包名称
target: ['zip'] // 打包成安装包和免安装版
},
mac: {
icon: './public/app.jpg'
},
productName: 'Chessmate' // 应用名称
}
}
},
publicPath: './', // 公共路径 如果放在服务器下的 admin 目录下 就配置 './admin'
// outputDir: 'chain', // 打包后的目录名
productionSourceMap: false, // 打包后不要sourcemap
chainWebpack: config => {
config.plugins.delete('prefetch')
config.plugins.delete('preload');
},
css: {
loaderOptions: {
sass: {
// prependData: `@import "@/assets/style/base.scss";`
},
},
},
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。