1234567891011121314151617181920212223242526272829303132333435 |
- const path = require('path')
- const distDir = path.resolve(__dirname, './dist/spa')
- module.exports = function () {
- return {
- build: {
- distDir: distDir,
- devPath: 'http://localhost:7334' // devServer URL or path to html file
- },
- ctx: {},
- tauri: {
- embeddedServer: {
- active: true
- },
- bundle: {
- active: true
- },
- whitelist: {
- all: true
- },
- window: {
- title: 'Tauri App'
- },
- security: {
- csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
- },
- edge: {
- active: true
- },
- automaticStart: {
- active: true
- }
- }
- }
- }
|