grunt-critical icon indicating copy to clipboard operation
grunt-critical copied to clipboard

Empty output css file when all original css is inlined?

Open azirer opened this issue 8 years ago • 2 comments

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 avatar Jun 06 '16 18:06 azirer

@azirer i'm quite busy at the moment. Trying to take a look as soon as possible

bezoerb avatar Jun 09 '16 15:06 bezoerb

@azirer: can you share a complete test case, preferably a small repo?

XhmikosR avatar Jun 14 '16 12:06 XhmikosR