Skip to main content


I'm using @eleventy v3 with the Bundle/Render plugins to render #Sass assets, it’s awesome. 😍

BUT!

In my code:

```
{% if sub_galleries_number > 0 %}
{%- css "critical" %}{% renderFile "src/assets/sass/components/sub_galleries.scss" %}{% endcss %}
{% include 'components/sub_galleries.njk' %}
{% endif %}
```

If I move `{%- css "critical" %}…{% endcss %}` inside the included Nunjucks β€œcomponent”, this component doesn't render anymore in the HTML of the page, without any warning or error. πŸ₯Ή

in reply to Eleventy 🎈 v3.0.0

no, I didn’t. I couldn't find a way to replicate this issue in a simpler project, starting from the base blog template.
in reply to Eleventy 🎈 v3.0.0

the repo is here: github.com/nhoizey/nicolas-hoi…

But my project has become quite complex, so please don't prioritize this, if I'm the only one reporting this issue. There are better ways to spend your time.

⇧