1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // 配置手册: 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: 8059,
- client: {
- overlay: false,
- },
- },
- pluginOptions: {
- electronBuilder: {
- externals: [
- "crypto-js",
- "log4js",
- "gm",
- "cropperjs",
- "p-queue",
- "js-md5",
- ],
- builderOptions: {
- extraFiles: [
- "extra/scan/**",
- "extra/database/org.rdb",
- "config.sample.json",
- "extra/imagemagick/**",
- "extra/zxingA/**",
- ],
- win: {
- target: [
- {
- target: "dir", // "dir" 表示 win-unpacked
- arch: ["x64"], // 可以指定 "x64", "ia32" 或 "arm64",根据需要选择
- },
- ],
- signAndEditExecutable: false,
- },
- },
- customFileProtocol: "./",
- },
- },
- });
|