-
Notifications
You must be signed in to change notification settings - Fork 29
Description
The problem
If you define more than one input_css path in the config/packages/symfonycasts_tailwind.yaml configuration file, Tailwind stylesheets are not generated for that CSS inputs:
# config/packages/symfonycasts_tailwind.yaml
symfonycasts_tailwind:
input_css:
- assets/app/styles/app.css
- assets/orange-pizza/styles/orange-pizza.css
- assets/brave-elephant/styles/brave-elephant.cssPlease see an example in the following repository:
https://github.com/kniziol/TailwindBundle-and-AssetMapper
Steps to reproduce the issue
-
Clone https://github.com/kniziol/TailwindBundle-and-AssetMapper repo
-
Install DDEV. See more: Get Started
-
Run the following commands to start the project:
ddev composer install
ddev launch
-
Go to https://symfony-asset-mapper-paths-separation.ddev.site/brave/elephant
-
See the error:
An exception has been thrown during the rendering of a template ("Built Tailwind CSS file does not exist: run "php bin/console tailwind:build" to generate it"). -
Run the command:
ddev console tailwind:build
See output similar to this one:
! [NOTE] Downloading TailwindCSS binary from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-linux-arm64 40525732/40525732 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% ! [NOTE] Executing Tailwind (pass -v to see more details). Rebuilding... Done in 90ms.
-
Refresh the page: https://symfony-asset-mapper-paths-separation.ddev.site/brave/elephant
-
Unfortunately, the error still exists 👇
More information
Stylesheet for the app entrypoint has been generated only:
ls -alh var/tailwind/
total 24
drwx------@ 4 kn staff 128B Jan 5 19:00 .
drwx------@ 5 kn staff 160B Jan 5 18:59 ..
-rw-------@ 1 kn staff 10K Jan 5 19:00 app.built.css // <------- Here
drwx------@ 3 kn staff 96B Jan 5 19:00 v3.4.17I expected stylesheets generated for all CSS inputs defined in the configuration file:
# config/packages/symfonycasts_tailwind.yaml
symfonycasts_tailwind:
input_css:
- assets/app/styles/app.css
- assets/orange-pizza/styles/orange-pizza.css
- assets/brave-elephant/styles/brave-elephant.css