vue.config.js 742 B

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