mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-20 00:52:41 +03:00
612d616112
* feat(examples): Add Svelte app example
Created with `npx degit sveltejs/template svelte-app`
* feat(examples): Copy scripts to Svelte example
* chore(examples): Remove unnecessary dependency
* feature(examples): Run tauri init and copy tauri config
* feature(examples): Copy Readme from examples
* fix(examples): Move svelte to dependencies
* Revert "chore(examples): Remove unnecessary dependency"
This reverts commit 2465e753b2
.
* chore(examples): Update Svelte example's Tauri config
* chore(examples): Enable Svelte app smoke tests
36 lines
693 B
JavaScript
36 lines
693 B
JavaScript
const path = require('path')
|
|
const distDir = path.resolve(__dirname, './public')
|
|
|
|
module.exports = function () {
|
|
return {
|
|
build: {
|
|
distDir: distDir,
|
|
devPath: 'http://localhost:5000' // devServer URL or html dir
|
|
},
|
|
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: {
|
|
active: true
|
|
},
|
|
automaticStart: {
|
|
active: true
|
|
}
|
|
}
|
|
}
|
|
}
|