Sage 9 - Add inline critical css from SASS?

Hi,

I’m looking to implement critical css in the head of my site for the preloader etc. but would still like to build the stylesheet using SASS (critical.scss). Theres two issues that I’m not sure about.

Development - no css file is actually generated, is there a way to for critical.css to be generated and watched so it would force a refresh if updated?

Production - remove version being added to file or ignore the version while importing, as this would just be fetched via file_get_contents?

3 Likes