chore(vite): reload screen when changing components html

This commit is contained in:
simon lehericey 2024-01-17 09:32:36 +01:00
parent 7e8555923f
commit 21cf3060a2

View file

@ -7,7 +7,7 @@ import RubyPlugin from 'vite-plugin-ruby';
const plugins = [
RubyPlugin(),
ViteReact({ jsxRuntime: 'classic' }),
FullReload(['config/routes.rb', 'app/views/**/*'], { delay: 200 })
FullReload(['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'], { delay: 200 })
];
if (shouldBuildLegacy()) {