mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
1951fc88c9
* feat(tauri) WIP on iframe wrapper * fix(tauri) iframe communication working * refactor(tauri) iframe injection on all modes * feat(event): update tauri.js injection * fix(tauri) rework on iframe/devServer * feat(tauri.js) use load event to notify tauri ready * fix(cargo.lock): remove erroneous lockfile * WIP * remove iframe * feat(tauri) inline assets, inject tauri.js * fix(example) tauri init * fix(api) load bundled asset * chore(api) remove println * chore(template) remove deprecated event listener * chore(example) gitignore tauri.js * chore(package.json) update email * fix(tauri) embedded-server's server_url definition * chore(api) use salt on event listener again * chore(webpack) add eslint * remove forward slash * perf(tauri) do not bundle inlined assets * chore(tauri) macros and platform only when using the updater feature * fix(tauri) proper feature check for the loadAsset API * chore(tauri) add "forked from" reference * chore(example) use @tauri-apps/tauri-webpack * fix(tauri) dev-server mode fixes * chore(example) use tauri-webpack 0.1.3 * feat(webpack) rewrite lazy loading only on the no-server mode * fix(no-server) lazy load images * chore(tauri) use forked includedir_codegen * fix deps * fix(tauri) use the right version for includedir deps * chore(tauri) println rerun-if-changed on dev
36 lines
691 B
JavaScript
36 lines
691 B
JavaScript
const path = require('path')
|
|
const distDir = path.resolve(__dirname, './dist')
|
|
|
|
module.exports = function () {
|
|
return {
|
|
build: {
|
|
distDir: distDir,
|
|
devPath: 'http://localhost:4000' // 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
|
|
}
|
|
}
|
|
}
|
|
}
|