5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 23:40:43 +08:00
wails/v2/internal/staticanalysis/test/standard
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 Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00
app.go Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00
go.mod Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00
go.sum Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00
main.go [assetserver] Introduce middleware and extract options (#2016) 2022-10-29 23:15:15 +02:00
README.md Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00
wails.json Feature/static analysis (#1983) 2022-10-16 23:08:34 +11:00

README

About

This is the official Wails Vanilla 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.