nystudio107 / craft-plugin-vite

Plugin Vite is the conduit between Craft CMS plugins and Vite, with manifest.json & HMR support
MIT License
12 stars 11 forks source link

Auto reload not happening on twig template changes #4

Closed mhill601 closed 2 years ago

mhill601 commented 2 years ago

I've setup a local environment and everything is working as expected except that auto reloading isn't happening whenever twig files are modified. CSS and Javascript files are all loaded with HMR as expected so this is only browser reload. The vite.config.js was pulled straight from your repo (link below).

https://github.com/nystudio107/craft/blob/craft-vite/buildchain/vite.config.js

I've attempted to modify the settings passed into VitePlugin, but haven't been able to get it to work.

Any ideas on what I could start looking at to find the issue?

Versions

khalwat commented 2 years ago

This is not going to be an issue with the plugin itself, but rather a config issue for Vite.

What is your local dev environment?

khalwat commented 2 years ago

Likely fixed in Vite 2.7