You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a django based project and using a base.html template file.
The main function of critical works like a charm. It extracts all used css rules out of the localhost:8000 dev server. Thumbs up for this!
But is it possible to write the extracted css rules into an extisting file for example in an placeholder or maybe inside an predefined <style data-id="critical"></style> tag, so that I don't have to copy the content in there by myself?
In my opinion, this would be a very useful enhancement of this nice tool.
cheers
bambamboole
The text was updated successfully, but these errors were encountered:
@bambamboole have you tried the inline: true option?
inline-critical has a target option to specify a selector where the critical css gets prepended. So if the default inine settings in critical doesn't work out, you could use inline-critical yourself to do the inlining for you as long as your template is parsable by cheerio
I'm building a django based project and using a base.html template file.
The main function of critical works like a charm. It extracts all used css rules out of the localhost:8000 dev server. Thumbs up for this!
But is it possible to write the extracted css rules into an extisting file for example in an placeholder or maybe inside an predefined
<style data-id="critical"></style>
tag, so that I don't have to copy the content in there by myself?In my opinion, this would be a very useful enhancement of this nice tool.
cheers
bambamboole
The text was updated successfully, but these errors were encountered: