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?
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 :)
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?
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 :)
is working on a reply...