tauri.conf.js 665 B

123456789101112131415161718192021222324252627282930313233
  1. const path = require('path')
  2. const distDir = path.resolve(__dirname, './dist')
  3. module.exports = function () {
  4. return {
  5. automaticStart: {
  6. active: true
  7. },
  8. build: {
  9. distDir: distDir,
  10. devPath: 'http://localhost:4000' // devServer URL or path to html file
  11. },
  12. ctx: {},
  13. tauri: {
  14. embeddedServer: {
  15. active: true
  16. },
  17. bundle: {
  18. active: true
  19. },
  20. whitelist: {
  21. all: true
  22. },
  23. window: {
  24. title: 'Tauri App'
  25. },
  26. security: {
  27. csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
  28. }
  29. },
  30. edge: true
  31. }
  32. }