docs: Add example for auto-reloading css
While migrating to the v2 I noticed that the example from the original documentation on how to make auto-reloading of SCSS and CSS work was missing in the documentation. As I rely on it heavily and think it increases the DX alot - especially for new users - , it should be added to the documentation. The example I provided is the one that is running on my machine and works as expected. WDYT?
- Fjedor
Yes, makes sense. Added the changes.
Honestly hot-reloading of both scss and typescript should be built-in ags. Interested to hear what @Aylur thinks.
For now I use fd .* -E @girs | entr -crz ags run until I find better but still simple tool. Normally I would use vite in frontend project.
I'll probably write a roadmap at some point, because this is a feature I have in mind.
For ags run I'm thinking of a --watch flag, but I don't think its possible to do hot module reloading like on web frameworks, at least I have no clue how it could be done, so all it would do is just restart the gjs process.
However for stylesheets it is possible. I'm thinking of doing it through dbus so all consumers of Astal.Application can benefit from it.
We can merge this in the meantime though after https://github.com/Aylur/astal/issues/95 is fixed
@danielwerg Good points. I pushed the changes
closing this because of https://github.com/Aylur/astal/pull/369
if you still feel like contributing, you can reopen this at https://github.com/Aylur/ags/