Closed ammannbe closed 2 years ago
Hi @ammannbe,
Try moving your CSS file into the templates
directory, so that Craft has a chance to parse out any Twig tags. You'll end up with a weird hybrid file, and I generally wouldn't recommend this approach, but it should do what you want. Another option is to make good use of the {% css %}
tag within your existing Twig templates.
Yup, this should already be possible! The "CSS File" field can accept an alias or environmental variable.
Hope that helps!
Hi @lindseydiloreto
I've already tried your approach to put the file into the templates folder - without any success. Do you have any idea?
Thanks!
Not sure why it's not working. You may want to hop over to Craft Discord and describe the issue in greater detail.
Hi there
Thanks for your help :)