Theme generators always works in production mode #14228
Labels
bug
prerelease version for Vaadin 23.2.0
Released with Vaadin 23.1.6
Released with Vaadin 23.2.0.beta1
vite
Tickets related to vite support
Description of the bug
With Vite the
theme-generator
plugin always works in production mode, since thedevMode = false
is hard-coded inthemeOptions
.This makes dev server fail to start when the
styles.css
is not present at startup.In dev mode an empty file is created by the
theme-generator
plugin, but with Vite the flag is always true so the file is not generated and then the compilation fails.Minimal reproducible example
Issue can be replicated running
ThemeLiveReloadIT
(flow-tests/test-application-theme/test-theme-live-reload
) with Vite enabledExpected behavior
styles.css
is created and Vite compilation completes succesfullyActual behavior
styles.css
is not created and Vite compilation failsVersions:
The text was updated successfully, but these errors were encountered: