Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a passive command? #633

Open
senpro-ingwersenk opened this issue Aug 20, 2024 · 1 comment
Open

Run a passive command? #633

senpro-ingwersenk opened this issue Aug 20, 2024 · 1 comment

Comments

@senpro-ingwersenk
Copy link

Hello!

Really simple: I am building a small frontend and bundle it with Vite. The generated HTML file is consumed with go:embed - and I would like to use Air to put the pieces together nicely.

It seems that the pre_cmd is blocking, so running vite's watcher halts the whole thing unfortunately.

Got another idea?

Kind regards!

@rweir
Copy link

rweir commented Sep 10, 2024

does vite not have a way to process files and exit? that's what I do for Go's templ:

cmd = "templ generate && go build -o ./tmp/web ./cmd/web/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants