Hi,
is there a way to an external stylesheet, in a template?
I’ve tried to place the link, but does not seem to work.
You should include your stylesheet in index.html
as templates are loaded afterwards and therefore won’t include it.
I was hoping to make a css file for each template (and i have dozens of it). Is it possible using config states or something?
Why are you wanting to include css for each template instead of including them in your index.html
?
If you structure your css into modules (separate files) you can manage them a lot better and if you are familiar with Sass you can follow the BEM methodology and structure your css a lot better.
There’s no advantage in including css per template on the actual template, it’s just messy and makes caching your template files difficult.
I see. Thanks. I’ll look into Sass.