Replies: 3 comments 7 replies
-
Check out our 11ty config: https://github.com/snowpackjs/snowpack/blob/master/create-snowpack-app/app-template-11ty/snowpack.config.js You'll want to add a small |
Beta Was this translation helpful? Give feedback.
-
I've been investigating and it seems to be related to Windows and browser-sync. I've not been able to solve it either. |
Beta Was this translation helpful? Give feedback.
-
It's working for me, if I append "index.html" to route. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm working on making a personal SSG starter kit that utilizes 11ty.
I followed the official snowpack app template for 11ty and I noticed that a few things have changed with Snowpack's config since this was made.
Using this as a guide I tried to make my own flavor.
Per 11ty's docs, you use the watch flag when running 11ty if you have your own server.
However for me when I run snowpack dev it will load the page, but HMR doesn't work when I make edits.
To make it simple I'm just doing edits on the index.html file adding p tags.
Sometimes the HMR would work when I open a new browser such as Firefox and make changes, but then it would stop after repeatedly making changes.
I do see that snowpack is successfully running 11ty's cli because the changes are appearing in my build destination.
For safe measure, to ensure that 11ty cli is working, I swapped the watch flag with the serve flag and it works.
package.json
.eleventy.js
snowpack.config.json
project file structure
Beta Was this translation helpful? Give feedback.
All reactions