Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion robo-components/ThemeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ private function doThemeCompile(bool $optimize = FALSE): void {
// Make sure we have all the node packages.
$this->_exec("cd $theme_dir && npm install");

$result = $this->_exec("cd $theme_dir && npx postcss ./src/pcss/style.pcss --output=./dist/css/style.css");
// Use Tailwind CLI to compile CSS and always minify for consistent output.
$tailwind_command = "cd $theme_dir && npx tailwindcss -i ./src/css/style.css -o ./dist/css/style.css --minify";
$result = $this->_exec($tailwind_command);

// Safety check to verify theme was properly compiled before deployment.
if (!file_exists(sprintf('%s/dist/css/style.css', self::$themeBase))) {
Expand Down
Loading