Skip to content

v0.7.0

Latest
Compare
Choose a tag to compare
@ttytm ttytm released this 18 Nov 12:33
· 18 commits to main since this release

What's Changed

The goal of this release is to add quality of life features for developers.

For applications that build their user interface using a node web framework, serve_dev and serve_satic have been integrated.

  • serve_dev - for usage during development
    serve_dev('ui_path') // Runs `npm run dev` in the `ui_path` and connects the webview window to it.
    serve_dev('ui_path', pkg_manager: .pnpm, script: 'start') // Runs `pnpm start` in the `ui_path` and "
  • serve_static - for usage in the compiled application
    serve_static('ui_path') // Uses vweb to serve a UI that has been built into a static site and "

Adds a minimal example using Astro: https://github.com/ttytm/webview/tree/main/examples/astro-project

Full Changelog: v0.6.0...v0.7.0