Move skip build check to javascript #172
Replies: 1 comment
-
Hi Stef! I'm not sure the benefits are worth it for most Vite apps:
For Vite Ruby the logic is in Ruby because it's typically faster than starting a node process to perform the same check, so it wouldn't benefit from moving the logic to a Vite plugin. It also makes it easier to test. Feel free to share what use cases you have in mind. I'm not sure Vite provides a good way to halt the build, so this script would probably not be implemented as a plugin alone, and might require an executable that triggers the build as needed. As a possible alternative, in îles I'm using Nx Cloud, which can cache the results of any scripts, such as the |
Beta Was this translation helpful? Give feedback.
-
I really like the functionality of this gem to prevent a build if nothing has changed. I now used vite in another project (without ruby) where the build is performed every time, even if nothing has changed on the front-end part.
So what about moving this functionality to a vite / rollup plugin? Would that also make sense to you?
Beta Was this translation helpful? Give feedback.
All reactions