I set up Parcel and it's working great for hot module replacement of html files when I hit Save (I have 2 html files - index.html and snake.html). I am using SASS and SASS modules using @use.
However, it is only auto-refreshing index.html when I make a change to any of the SASS files. snake.html does not auto-refresh. Oddly, if I hit save on either index.html, snake.html or package.json after making a change to a SASS file and saving, THEN snake.html refreshes and shows the changes to the CSS.
My package.json has this:
"scripts": {
"dev": "parcel src/index.html src/snake.html",
"build": "parcel build src/*.html src/js/*.js src/scss/*.scss"
},
Any idea what's going on? Thanks!