tauri.conf.js 608 B

123456789101112131415161718192021222324252627282930
  1. const path = require('path')
  2. const distDir = path.resolve(__dirname, './dist')
  3. module.exports = function () {
  4. return {
  5. build: {
  6. distDir: distDir,
  7. devPath: 'http://localhost:4000' // devServer URL or html dir
  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. },
  27. edge: true
  28. }
  29. }