grunt-critical
grunt-critical copied to clipboard
Empty output css file when all original css is inlined?
On a website I have all css is inlined for every page and every page has different css. So I'm using this
critical: {
test: {
options: {
base: './',
inline:false,
extract:true,
minify:true
},
src: 'https://mydomain.com/',
dest: 'output/critical.css'
}
}
But output/critical.css is empty. Using the same options when styles are external files I get the critical css file as intended. Am I doing anything wrong or doesn't this script evaluate <style type="text/css">css code here </style>
inside the <head>
?
@azirer i'm quite busy at the moment. Trying to take a look as soon as possible
@azirer: can you share a complete test case, preferably a small repo?