diff --git a/src/Presets/Vite/TailwindPreset.php b/src/Presets/Vite/TailwindPreset.php index 7b8c896..2d3402e 100644 --- a/src/Presets/Vite/TailwindPreset.php +++ b/src/Presets/Vite/TailwindPreset.php @@ -44,6 +44,11 @@ protected function exportBootstrapping() $this->ensureDirectoryExists($this->themePath('css')); copy($this->stubPath('tailwind-stubs/tailwind.config.js'), $this->themePath('tailwind.config.js')); + $this->replaceInFile( + '%theme_path%', + $this->relativeThemePath($this->getTheme()), + $this->themePath('tailwind.config.js') + ); if (! $this->exists($this->themePath('js/app.js'))) { copy( diff --git a/stubs/Presets/tailwind-stubs/tailwind.config.js b/stubs/Presets/tailwind-stubs/tailwind.config.js index a5bccf0..fb6a3b9 100644 --- a/stubs/Presets/tailwind-stubs/tailwind.config.js +++ b/stubs/Presets/tailwind-stubs/tailwind.config.js @@ -5,6 +5,7 @@ module.exports = { "./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php", "./storage/framework/views/*.php", "./resources/views/**/*.blade.php", + "./%theme_path%/**/*.{blade.php,js,vue,ts}", ], theme: {