// 配置手册: https://cli.vuejs.org/zh/config/#vue-config-js // electron-bulder配置:https://www.electron.build/configuration/contents#extrafiles const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, // publicPath: './', devServer: { port: 8066, client: { overlay: false, }, }, pluginOptions: { electronBuilder: { externals: ["crypto-js", "log4js", "gm", "cropperjs"], builderOptions: { extraFiles: [ "extra/scan/**", "extra/database/org.rdb", "config.sample.json", "extra/imagemagick/**", "extra/zxing/**", "extra/zxingA/**", ], win: { target: "portable", signAndEditExecutable: false, }, }, customFileProtocol: "./", }, }, });