filamentgroup / grunt-criticalcss

Grunt wrapper for criticalcss
MIT License
530 stars 27 forks source link

Task runs but no output #15

Closed dheian closed 9 years ago

dheian commented 9 years ago

When I run grunt criticalcss I get the 'Done. without errors' message, but no output file is written.

Hoping I'm just missing something in my config:

criticalcss: {
options: {
url: "http://localhost/index.shtml",
            width: 1200,
            height: 900,
            outputfile: "html/css/build/critical.css",
            filename: "html/css/build/dh.min.css",
            buffer: 800*1024
}
},
danyeah commented 9 years ago

Same here. I'm on windows 7, running the task with the --verbose switch gives no other information other than "Done, without errors."

jefflembeck commented 9 years ago

@dheian @danielhq Any chance either of you have a project I can run this against? I'd like to see the best way to get to the bottom of this.

Thanks

jefflembeck commented 9 years ago

My only thought on this is:

criticalcss: {
    options: {
        url: "http://localhost/index.shtml",
        width: 1200,
        height: 900,
        outputfile: "html/css/build/critical.css",
        filename: "html/css/build/dh.min.css",
        buffer: 800*1024
    }
},

should be

criticalcss: { taskname: { options: { url: "http://localhost/index.shtml", width: 1200, height: 900, outputfile: "html/css/build/critical.css", filename: "html/css/build/dh.min.css", buffer: 800*1024 } } },


Please reopen if there are still issues, as I cannot reproduce them at this time.