9 Star 28 Fork 11

AvenirTech 未来科技 / Chessmate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
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";`
},
},
},
})
NodeJS
1
https://gitee.com/onlyyyy/chessmate.git
git@gitee.com:onlyyyy/chessmate.git
onlyyyy
chessmate
Chessmate
master

搜索帮助