tauri.conf.js 703 B

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