From a0520f47ec0af0e33b1b6eb3415157b6307da2dd Mon Sep 17 00:00:00 2001 From: scramatte Date: Sun, 18 Sep 2022 17:33:04 +0200 Subject: [PATCH] Quick dirty fix to solve #19 issue Append "@import tailwindcss/utilities" to app.css before --- src/Console/Commands/CustomAssetsCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/Commands/CustomAssetsCommand.php b/src/Console/Commands/CustomAssetsCommand.php index 646a3e1..a75278a 100644 --- a/src/Console/Commands/CustomAssetsCommand.php +++ b/src/Console/Commands/CustomAssetsCommand.php @@ -157,6 +157,7 @@ protected function npmProduction(): void $replace = [ '@import \'nova\';' => $novaCSS, '@import \'fonts\';' => $fontsCSS, + '@import \'tailwindcss/components\';' => '@import \'tailwindcss/components\';' . PHP_EOL . '@import \'tailwindcss/utilities\';', ]; $appCSS = str_replace(array_keys($replace), array_values($replace), $appCSS); $this->novaStorage->put('resources/css/app.css', $appCSS);