vue.config.js 995 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. runtimeCompiler: true,
  3. devServer: {
  4. stats: 'verbose',
  5. },
  6. pluginOptions: {
  7. electronBuilder: {
  8. // List native deps here if they don't work
  9. externals: [
  10. 'sqlite3',
  11. 'sharp',
  12. 'sequelize',
  13. 'ali-oss',
  14. 'urllib',
  15. 'utility',
  16. 'archiver',
  17. 'dcraw',
  18. 'nodejs-fs-utils',
  19. ],
  20. // If you are using Yarn Workspaces, you may have multiple node_modules folders
  21. // List them all here so that VCP Electron Builder can find them
  22. nodeModulesPath: ['./node_modules'],
  23. builderOptions: {
  24. productName: '图途象',
  25. nsis: {
  26. oneClick: false,
  27. perMachine: true,
  28. allowToChangeInstallationDirectory: true,
  29. },
  30. },
  31. },
  32. },
  33. };