-
Notifications
You must be signed in to change notification settings - Fork 12
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
Updating main.css doesn't trigger live reload #9
Comments
@megavolkan you're correct that should be hot reloading when a change is made; however, that's not what is happening. You can see that inside of We are specifying the extensions we want to watch for:
In the next lines we create the LiveReload server and loop through a few folders to watch for:
The assets folder is inside of the
So, you are correct that it is not working as intended. The weird thing is that I can add a file at I've double checked that this is the recommended way to use this library. Here is the livereload library that Static is using: I've spent about an hour trying to debug with no luck, so I'll have to give it another try soon and dig a little deeper. Feel free to try and debug if you have some extra time. To do so you can git clone this repo onto your machine and run npm install
Then, you can run:
This command will link the code from that folder to the
No worries if you can't debug. I'll be sure to give it another debugging try over the weekend 🤜🤛 Talk to you soon. |
Hi, is there any progress? I have tried a few thing, yet they did not work either. Removed tailwind altogether (not a huge fan o it). Added additional .css files to the /assets folder and run 'static build' but additional css files are not compiled into the _site folder, only main.css. I suppose build process is not watching /assets/css folder other than main.css file. On the other hand /assets/js folder is watched and compiled without a problem. I really do want to use Static, for its simplicity, file based routing and other bells and whistles but I think it has a long way ahead. |
Editing /assets/css/main.css. Trying to add custom styles after /* Add Your Custom CSS Here */ comment line. Server is running, yet editing main.css file doesn't trigger a live-reload. Editing any html or even /assets/js/main.js does trigger live reload. Is this expected?
The text was updated successfully, but these errors were encountered: