5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-18 09:59:31 +08:00
wails/v2/pkg/templates/base
stffabi 638caf72f0
[assetserver] Introduce middleware and extract options (#2016)
* [assetserver] Add support for HTTP Middlewares

* [dev] Disable frontend DevServer if no Assets has been defined and inform user

* [dev] Consistent WebSocket behaviour in dev and prod mode for assets handler and middleware

In prod mode we can't support WebSockets so make sure the
assets handler and middleware never see WebSockets in dev mode.

* [templates] Migrate to new AssetServer option

* [docs] Add assetserver.Options to the reference
2022-10-29 23:15:15 +02:00
..
.gitignore.tmpl Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
app.tmpl.go Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
go.mod.tmpl Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
main.go.tmpl [assetserver] Introduce middleware and extract options (#2016) 2022-10-29 23:15:15 +02:00
README.md Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
template.json Releasetest/release workflow (#1869) 2022-09-18 08:55:21 +10:00
wails.tmpl.json Add JSON schema for config file (#1864) 2022-10-22 21:07:37 +11:00

README

About

This is the official Wails $NAME template.

You can configure the project by editing wails.json. More information about the project settings can be found here: https://wails.io/docs/reference/project-config

Live Development

To run in live development mode, run wails dev in the project directory. This will run a Vite development server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect to this in your browser, and you can call your Go code from devtools.

Building

To build a redistributable, production mode package, use wails build.