tauri.conf.js 603 B

123456789101112131415161718192021222324252627282930
  1. const
  2. path = require('path'),
  3. distDir = path.resolve(__dirname, './dist')
  4. module.exports = function () {
  5. return {
  6. build: {
  7. distDir: distDir,
  8. APP_URL: 'http://localhost:4000' // must use a localhost server for now
  9. },
  10. ctx: {},
  11. tauri: {
  12. embeddedServer: {
  13. active: true
  14. },
  15. bundle: {
  16. active: true
  17. },
  18. whitelist: {
  19. all: false
  20. },
  21. window: {
  22. title: 'Tauri App'
  23. },
  24. security: {
  25. csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
  26. }
  27. }
  28. }
  29. }