Open caeleth opened 7 years ago
@girlonrails I had this problem too. ended up just skipping the gem.
My example uses slim but should work in other templating languages. I am rendering "critical.css" in the header.
css:
#{sitemap.resources.find{|r| r.source_file.match('critical.css')}.render}
I am trying to inline CSS but got this exception:
I have followed the instructions in the readme file.
This is my code:
= inline_css 'style', 'highlighting.css'
Alternative approach works fine but I want to inline that CSS, not just put a link outside the head:
= stylesheet_link_tag 'highlighting.css'
Is your gem compatible with latest version of middleman?