Closed brunoimbrizi closed 1 year ago
The intention behind this PR is to avoid a server.restart() when a shader file is updated - as discussed on https://github.com/UstymUkhman/vite-plugin-glsl/issues/31
server.restart()
The implementation proposed here follows Vite's plugin/css.
Here's an online example: https://stackblitz.com/edit/vitejs-vite-7cujfh?file=glsl%2Finclude-B.glsl
The intention behind this PR is to avoid a
server.restart()
when a shader file is updated - as discussed on https://github.com/UstymUkhman/vite-plugin-glsl/issues/31The implementation proposed here follows Vite's plugin/css.
Here's an online example: https://stackblitz.com/edit/vitejs-vite-7cujfh?file=glsl%2Finclude-B.glsl