Replies: 1 comment
-
If anyone is looking for how to do monitoring for *.htm files, here is an example: // ...
export default defineConfig({
// ...
plugins: [
{
name: 'watcher-html',
configureServer(server) {
server.watcher.add(resolve(__dirname, '**/*.htm'));
server.watcher.on('all', (event, file) => {
if (file.endsWith('.htm')) {
server.ws.send({type: 'full-reload'});
}
});
}
},
],
// ...
}); Just add this code to your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you get HMR to work with pages, layouts and partials?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions