Hello. I have a problem when trying to use this bundle on my current twig files.
In https://github.com/tijsverkoyen/CssToInlineStyles I have read that <link rel="stylesheet"> tags are supported, however this bundle ignores them. I tried it even without using webpack manifest file and its still the same.
Is it possible to extend this functionality? Somehow I cannot imagine manually rewriting 5MB of CSS in every template 😄
Example code:
inline.html.twig
{% cssinline %}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="{{ asset('build/test.css') }}">
</head>
<body>
<p class="red text-white">Red & white</p>
</body>
</html>
{% endcssinline %}
test.css
.red{
background-color: red;
}
.text-white{
color: white !important;
}
Hello. I have a problem when trying to use this bundle on my current twig files.
In https://github.com/tijsverkoyen/CssToInlineStyles I have read that
<link rel="stylesheet">tags are supported, however this bundle ignores them. I tried it even without using webpack manifest file and its still the same.Is it possible to extend this functionality? Somehow I cannot imagine manually rewriting 5MB of CSS in every template 😄
Example code:
inline.html.twig
test.css