vue.config.js 872 B

123456789101112131415161718192021222324252627282930313233
  1. // 配置手册: https://cli.vuejs.org/zh/config/#vue-config-js
  2. // electron-bulder配置:https://www.electron.build/configuration/contents#extrafiles
  3. const { defineConfig } = require("@vue/cli-service");
  4. module.exports = defineConfig({
  5. transpileDependencies: true,
  6. // publicPath: './',
  7. devServer: {
  8. port: 8066,
  9. client: {
  10. overlay: false,
  11. },
  12. },
  13. pluginOptions: {
  14. electronBuilder: {
  15. externals: ["crypto-js", "log4js", "gm", "cropperjs"],
  16. builderOptions: {
  17. extraFiles: [
  18. "extra/scan/**",
  19. "extra/database/org.rdb",
  20. "config.sample.json",
  21. "extra/imagemagick/**",
  22. "extra/zxing/**",
  23. "extra/zxingA/**",
  24. ],
  25. win: {
  26. target: "portable",
  27. signAndEditExecutable: false,
  28. },
  29. },
  30. customFileProtocol: "./",
  31. },
  32. },
  33. });