You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

54 lines
1.6 KiB

const {
defineConfig
} = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
runtimeCompiler: true,
productionSourceMap: false,
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
assetsDir: 'assets',
devServer: {
https: false, // 开启https
port: 3001, // 端口号
host: '0.0.0.0', // 项目地址
},
css: {
loaderOptions: {
sass: {
sassOptions: {
outputStyle: 'expanded'
}
}
}
},
pluginOptions: {
electronBuilder: {
preload:'src/preload.js',
builderOptions: {
productName: 'Raingad-IM', // 生成 exe 的名字
appId: "8007:16.66.168.192", // 包名
copyright: "0.0.0.1", // 版权信息
asar: false, // 文件不压缩成 app.asar
directories: { // 输出文件夹
output: "electron_output",
},
nsis: {
oneClick: false, //是否一键安装
allowElevation: false, // 允许请求提升。若为false,则用户必须使用提升的权限重新启动安装程序
allowToChangeInstallationDirectory: true, //是否允许修改安装目录
installerIcon: "./public/logo.ico", // 安装时图标
uninstallerIcon: "./public/logo.ico", //卸载时图标
installerHeaderIcon: "./public/logo.ico", // 安装时头部图标
createStartMenuShortcut: true, // 是否创建开始菜单图标
createDesktopShortcut: true, //是否创建桌面图标
shortcutName: "Raingad-IM", // 快捷方式名称
runAfterFinish: false, //是否安装完成后运行
},
win: {
icon: './public/logo.ico'
},
}
}
}
});