123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- const { resolve } = require('path')
- const path = require('path')
- module.exports = {
- publicPath: "/",
- outputDir: "dist",
- assetsDir: "static",
- lintOnSave: false, // 关闭eslint
- runtimeCompiler: true,
- chainWebpack: config => {
- config.resolve.alias
- .set('@', resolve('src'))
- .set('#', resolve('static'))
- },
- pluginOptions: {
- 'style-resources-loader': {
- preProcessor: 'sass',
- patterns: [
- path.resolve(__dirname, './src/assets/styles/*.scss') //你的.scss文件所在目录
- ]
- },
- // 桌面应用打包配置
- electronBuilder: {
- builderOptions: {
- // build配置在此处
- // options placed here will be merged with default configuration and passed to electron-builder
- "productName": "liebao-web",
- "appId": "XXX",
- "publish": [
- {
- "provider": "generic",
- "url": "https://pc.liebaoai.cn/download/liebao-web%20Setup%200.1.0.exe",//更新服务器地址,可为空
- }
- ],
- "mac": {
- "icon": "./static/image/desk-logo.ico"
- },
- "win": {
- "icon": "./static/image/desk-logo.ico"
- },
- "linux": {
- "icon": "./static/image/desk-logo.ico"
- },
- "asar": false,
- "nsis": {
- "oneClick": false,
- "guid": "猎豹AI聚合配送",
- "perMachine": true,
- "allowElevation": true,
- "allowToChangeInstallationDirectory": true,
- "installerIcon": "./static/image/desk-logo.ico",
- "uninstallerIcon": "./static/image/desk-logo.ico",
- "installerHeaderIcon": "./static/image/desk-logo.ico",
- "createDesktopShortcut": true,
- "createStartMenuShortcut": true,
- "shortcutName": "猎豹AI聚合配送"
- }
- }
- }
- }
- }
|