mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +03:00
fix: Add WASM files to Vite Allow List and change devPath to localhost to fix Web Example (#5560)
Co-authored-by: Ben Wishovich <ben@benw.is>
This commit is contained in:
parent
777c086590
commit
878421beb7
@ -2,7 +2,7 @@
|
||||
"build": {
|
||||
"beforeBuildCommand": "yarn build:tauri",
|
||||
"beforeDevCommand": "yarn dev:tauri",
|
||||
"devPath": "http://127.0.0.1:5173",
|
||||
"devPath": "http://localhost:5173",
|
||||
"distDir": "../../build"
|
||||
},
|
||||
"package": {
|
||||
|
@ -25,6 +25,12 @@ if (TARGET === 'web') {
|
||||
}
|
||||
|
||||
const config: UserConfig = {
|
||||
server: {
|
||||
fs: {
|
||||
// Allow serving the wasm file from this folder.
|
||||
allow: ['.']
|
||||
}
|
||||
},
|
||||
plugins,
|
||||
resolve: {
|
||||
alias: {
|
||||
|
Loading…
Reference in New Issue
Block a user