4 ms·
Does anyone have a nice dev tool setup which adds auto page refresh and production processed assets? One thing I noticed after making a small FastAPI/HTMX app
by nop_slide 5y ago
Does anyone have a nice dev tool setup which adds auto page refresh and production processed assets?
One thing I noticed after making a small FastAPI/HTMX app was that I missed the hot reload of React. Also I noticed when I deployed to a live version of the site I found myself needing to hard refresh my browser because my assets didn't have hashes appended to bust the cache.
Just curious if anyone has some cool setups :) It would be awesome if there was a way to integrate ParcelJS as it has a nice reload server.
- vosper 5y agoThis worked for me https://www.npmjs.com/package/reload https://www.npmjs.com/package/reload
- nop_slide 5y agoDoesn't this just serve your files? I was hoping to look for a way to get auto reload to work while being served by your Flask/FastAPI server. Maybe it's not a big deal to dev using "reload" but have your prod app served by Flask/FastAPI.
- vosper 5y agoYou can have the site reload whenever your backend server code changes. That's how I was using it. Perhaps I'm misunderstanding what you're asking for.
- tga 5y agoI have been using Parcel (https://parceljs.org https://parceljs.org) for building JS and CSS (from SASS) asset bundles for Django apps. It is pleasant to use because it takes almost no configuration to get going.