CLOVIS
08/31/2025, 6:14 PMRobert Jaros
09/04/2025, 4:49 PMplugin() function enough? I'm trying to use tailwindcss pluign and I've added:
plugin("@tailwindcss/vite", "tailwindcss", "4.1.12")Robert Jaros
09/04/2025, 4:49 PMRobert Jaros
09/04/2025, 4:50 PM> Task :viteRun FAILED
failed to load config from /home/rjaros/git/kilua-dev/build/vite/dev/vite.config.js
error when starting dev server:
Error: Cannot find module '@tailwindcss/vite'Robert Jaros
09/04/2025, 6:21 PMimplementation(npm("@tailwindcss/vite", "4.1.12"))Robert Jaros
09/04/2025, 6:22 PMRobert Jaros
09/04/2025, 6:23 PMvite.config.mjs fixes that. No other changes are necessary.CLOVIS
09/04/2025, 6:38 PMI think the dependency is not addedReproduced 😕 Tracking as https://gitlab.com/opensavvy/automation/kotlin-vite/-/issues/65
Robert Jaros
09/04/2025, 7:17 PMCLOVIS
09/04/2025, 7:17 PMRobert Jaros
09/04/2025, 7:21 PMRobert Jaros
09/04/2025, 7:21 PMCLOVIS
09/04/2025, 7:21 PMCLOVIS
09/04/2025, 7:35 PMtasks.withType<WriteConfig>().configureEach {
configurationFile.set(…)
}Robert Jaros
09/05/2025, 5:28 AMtasks.withType<WriteConfig>().configureEach {
configurationFile.set(project.layout.buildDirectory.dir("vite").map { it.file("vite.config.mjs") })
}
and got an error:
A problem was found with the configuration of task ':viteRun' (type 'KotlinViteExec').
- Type 'opensavvy.gradle.vite.kotlin.tasks.KotlinViteExec' property 'configurationFile' specifies file '/home/rjaros/git/kilua-dev/build/vite/dev/vite.config.js' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the file exists before the task is called.
2. Make sure that the task which produces the file is declared as an input.CLOVIS
09/05/2025, 7:51 AM