Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • William Corry 34 posts 171 karma points
    May 18, 2015 @ 17:54
    William Corry
    0

    Grunt and Critical css

    I have grunt running which combines and minifies my css. I am looking to add: https://github.com/filamentgroup/criticalCSS to my workflow so for each template I will create a css file which I wish to inline into the template.

    The files may well update so I don't wish to have to copy the contents of the file to put between 2 each time it updates so is there a way I can avoid the manual process and include like you can a partial view?

  • William Corry 34 posts 171 karma points
    May 20, 2015 @ 18:33
    William Corry
    100

    Came up with a solution used critical css to create a css file for each page, then used grunt replace to replace any @ characters to @@ then used grunt css minify to minify and save as a cshtml file this seems to work :)

Please Sign in or register to post replies

Write your reply to:

Draft