mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
34 lines
666 B
JavaScript
34 lines
666 B
JavaScript
const path = require('path')
|
|
const distDir = path.resolve(__dirname, './dist')
|
|
|
|
module.exports = function () {
|
|
return {
|
|
automaticStart: {
|
|
active: true
|
|
},
|
|
build: {
|
|
distDir: distDir,
|
|
devPath: 'http://localhost:4000' // devServer URL or path to html file
|
|
},
|
|
ctx: {},
|
|
tauri: {
|
|
embeddedServer: {
|
|
active: true
|
|
},
|
|
bundle: {
|
|
active: true
|
|
},
|
|
whitelist: {
|
|
all: false
|
|
},
|
|
window: {
|
|
title: 'Tauri App'
|
|
},
|
|
security: {
|
|
csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
|
|
}
|
|
},
|
|
edge: true
|
|
}
|
|
}
|