Open spacejack opened 5 years ago
Ugh, I did figure it out finally. It is a bit frustrating that the most obvious simple case is not very intuitive. I needed the command:
budo -p 3000 --dir public --wg **/*.{html,css,js} --live
And the warning goes away as well.
Here's a sample project using this setup.
One strange thing is that the first edit I make to the JS file is not picked up. I have to shift-reload once, then after that budo's live reload seems to work from that point on.
I'm using this command:
CSS files are in
public/css/
and JS files are inpublic/js/
. The page itself is atpublic/index.html
.I see updates when edits are made to index.html and css files, but not for the JS files. Is there a way to get it to refresh the page when JS sources are changed?
Also, I'm using
<script type="module" src="js/main.js"></script>
. Although it doesn't seem to work with a plain old<script src="js/main.js">
either.I also get the following warning which is a bit of an annoyance since it's not correct, but I can live with it...