Use nuxt 4 folder structure
This commit is contained in:
@@ -27,7 +27,7 @@ Build super fast desktop applications!
|
|||||||
|
|
||||||
## Technologies run-down
|
## Technologies run-down
|
||||||
|
|
||||||
- Nuxt 3
|
- Nuxt 3 (v4 ready!)
|
||||||
- Tauri 2
|
- Tauri 2
|
||||||
- UnoCSS
|
- UnoCSS
|
||||||
- Typescript
|
- Typescript
|
||||||
@@ -84,7 +84,7 @@ The same Tauri bundle will generate under `src-tauri/target`, but with the abili
|
|||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- Tauri v2 brings some big refactors, such as packages names and permission management. New permissions have to be granted under `src-tauri/capabilities/main.json`
|
- Tauri v2 brings some big refactors, such as packages names and permission management. New permissions have to be granted under `src-tauri/capabilities/main.json`
|
||||||
- Tauri js functions are auto imported as-is with the help of a custom module. If another Tauri plugin is added, then the module has to be updated to support auto imports under `src/modules/tauri.ts`
|
- Tauri js functions are auto imported with the help of a custom module, named like `useTauri<LibraryName>`. If another Tauri plugin is added, then the module has to be updated to support its functions under `src/modules/tauri.ts`
|
||||||
- As per documentation, Nuxt SSR must be disabled in order for Tauri to act as the backend. Still, all Nuxt goodies will be functional.
|
- As per documentation, Nuxt SSR must be disabled in order for Tauri to act as the backend. Still, all Nuxt goodies will be functional.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 409 KiB After Width: | Height: | Size: 409 KiB |
@@ -60,7 +60,6 @@ export default defineNuxtConfig({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
srcDir: "src/",
|
|
||||||
ssr: false,
|
ssr: false,
|
||||||
devServer: {
|
devServer: {
|
||||||
host: "0.0.0.0"
|
host: "0.0.0.0"
|
||||||
@@ -70,5 +69,8 @@ export default defineNuxtConfig({
|
|||||||
standalone: false
|
standalone: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
future: {
|
||||||
|
compatibilityVersion: 4
|
||||||
|
},
|
||||||
compatibilityDate: "2025-01-01"
|
compatibilityDate: "2025-01-01"
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user