We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
I would be nice if FastHTMLLiveReload supported CSS and JS files. See https://discord.com/channels/689892369998676007/1247700012952191049/1281138518382350422
Describe the solution you'd like
Implement this uvicorn main:app --reload-include="*.css" --reload-include="*.js" but in the live_reload.py module and callable from fast_app()
uvicorn main:app --reload-include="*.css" --reload-include="*.js"
fast_app()
Example code Provide an example of how you imagine the feature working:
app, rt = fast_app(reload_css=True, reload_js=True)
Problem solved
Makes it easier to work with CSS and JS files. There might still be issues with browser caching.
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered:
This may help you @pydanny
Instead of running serve() run serve(reload_includes=["static/*"])
serve()
serve(reload_includes=["static/*"])
This solved the issue for me as now the app would reload if I'd change some files in my static folder.
static
Sorry, something went wrong.
Thanks!
In a total facepalm moment I admit to adding that feature to FastHTML #291 😅
No branches or pull requests
Is your feature request related to a problem? Please describe.
I would be nice if FastHTMLLiveReload supported CSS and JS files. See https://discord.com/channels/689892369998676007/1247700012952191049/1281138518382350422
Describe the solution you'd like
Implement this
uvicorn main:app --reload-include="*.css" --reload-include="*.js"
but in the live_reload.py module and callable fromfast_app()
Example code
Provide an example of how you imagine the feature working:
Problem solved
Makes it easier to work with CSS and JS files. There might still be issues with browser caching.
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered: