vue.config.js 797 B

1234567891011121314151617181920212223242526272829
  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. },
  10. pluginOptions: {
  11. electronBuilder: {
  12. externals: ["crypto-js", "log4js", "gm", "cropperjs"],
  13. builderOptions: {
  14. extraFiles: [
  15. "extra/scan/**",
  16. "extra/database/org.rdb",
  17. "config.sample.json",
  18. "extra/imagemagick/**",
  19. "extra/zxing/**",
  20. "extra/zxingA/**",
  21. ],
  22. win: {
  23. target: "portable",
  24. signAndEditExecutable: false,
  25. },
  26. },
  27. },
  28. },
  29. });