Hi, we have a code base where we are using scss not only to build the main (vaadin) app theme, but also other css-files, e.g., for handing that css file to a third party tool. Earlier (v8) we used Vaadin’s bundled scss compiler via a Gradle task.
Now we want to do the same thing with flow. What I attempted was to declare additional entry points in vite.config.ts like so
...
build: {
rollupOptions: {
input: {
'customstyle/a': path.resolve(frontendFolder, 'themes/a/styles.scss'),
'customstyle/b': path.resolve(frontendFolder, 'themes/b/styles.scss'),
},
...
With this, I get two styles.SOME_HASH.css files in build/resources/main/META-INF/VAADIN/webapp/VAADIN/build. However, I cannot control the names. As far as I understand, naming can be set in the rollup output object, however when I start to fiddle with this, the indexhtml target throws all kinds of errors.
So maybe this is not the right way to do this at all. The goal would be, to have a list of .scss files that should be compiled to .css files with the same tooling as the main theme file.
Do you have any pointers for me, where to look?