I am adding storybooks to our project and to build it Vite requires the file vite.generated.ts to be there. I was trying multiple Gradle goals here to generate that file, but apparently it is only generated when I run the development mode. Even when I compile with the production command it does not generate it.
I don’t think you can commit it because it also depends on generated files in the build folder.
I see on top of the file the following comment:
[11:25] Thiago Vidigal
/**
* NOTICE: this is an auto-generated file
*
* This file has been generated by the `flow:prepare-frontend` maven goal.
* This file will be overwritten on every run. Any custom changes should be made to vite.config.ts
*/
But when I run the gradle equivalent ./gradlew vaadinPrepareFrontend it does not get generated.