tauri-docs
tauri-docs copied to clipboard
Add guide: Tauri + Rollup
Setup
- link to rollup setup
- link to tauri setup
- add tauri to rollup project
- consider using
babelwith recommend target config"targets": { "esmodules": true "chrome": "97", "safari": "13" }
Development
- link to React, Vue, Svelte guides
Building
- explain
rollup -c(short) - explain how
tauri buildwill find the assets
SSR
- how? Maybe https://github.com/chrisvfritz/prerender-spa-plugin is an option?
Plugin recommendations
- rollup is the sum of it's plugins
- recommend some good plugins to use when developing native apps
rollup-plugin-visualizer,rollup-plugin-sizesorrollup-plugin-size-snapshotfor tracking app sizerollup-plugin-terser- Minify coderollup-plugin-serve- Development server@rollup/plugin-node-resolveto bundle all node_module dependencies@rollup/plugin-typescriptjust use typescript please@rollup/plugin-replaceto make use ofTAURI_PLATFORM,TAURI_ARCH,TAURI_FAMILY,TAURI_PLATFORM_VERSION,TAURI_PLATFORM_TYPEandTAURI_DEBUGenv variablesrollup-plugin-imagetools(shameless plug) orrollup-plugin-imageminto optimize images
Could this perhaps be taken up as a Frontend Configuration? https://beta.tauri.app/guides/frontend/ Tracking for 2.0