Is there a way and possibly examples for generating CSS files
//domain.tld/main.css
using Fusion?
- for http access directly from a browser
- for (CLI) access through a bundler
Is there a way and possibly examples for generating CSS files
//domain.tld/main.css
using Fusion?
Should be very similar procedure as we did for the robots.txt. See here neos-seo/RobotsTxt.fusion at master · neos/neos-seo · GitHub
Beautiful!
You’re using the route’s request format to set the root renderer.
These questions arise for me now:
I‘m not quite sure how you mean 1.
I don‘t think it‘s possible to make that css based on your page and its prototypes. At least it will not be very performant when every page has its own CSS file.
What I did in my Plugin was to render the inline css for each component and have a middleware that concatenation them at the end and removes duplicates.
Regarding 2 . you can have a Eel helper as process that will do some PHP based minification. Or a Fusion object with implementation. Doesn‘t really matter at the end.