recommend some good plugins to use when developing native apps
rollup-plugin-visualizer, rollup-plugin-sizes or rollup-plugin-size-snapshot for tracking app size
rollup-plugin-terser - Minify code
rollup-plugin-serve - Development server
@rollup/plugin-node-resolve to bundle all node_module dependencies
@rollup/plugin-typescript just use typescript please
@rollup/plugin-replace to make use of TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG env variables
rollup-plugin-imagetools (shameless plug) or rollup-plugin-imagemin to optimize images
Setup
babel
with recommend target configDevelopment
Building
rollup -c
(short)tauri build
will find the assetsSSR
Plugin recommendations
rollup-plugin-visualizer
,rollup-plugin-sizes
orrollup-plugin-size-snapshot
for tracking app sizerollup-plugin-terser
- Minify coderollup-plugin-serve
- Development server@rollup/plugin-node-resolve
to bundle all node_module dependencies@rollup/plugin-typescript
just use typescript please@rollup/plugin-replace
to make use ofTAURI_PLATFORM
,TAURI_ARCH
,TAURI_FAMILY
,TAURI_PLATFORM_VERSION
,TAURI_PLATFORM_TYPE
andTAURI_DEBUG
env variablesrollup-plugin-imagetools
(shameless plug) orrollup-plugin-imagemin
to optimize images