Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #36

Open
enricominciamo opened this issue Dec 14, 2016 · 5 comments
Open

error #36

enricominciamo opened this issue Dec 14, 2016 · 5 comments

Comments

@enricominciamo
Copy link

Unhandled rejection Error: File.contents can only be a Buffer, a Stream, or null.

@lukebussey
Copy link

I'm getting the same error. Downgrading to 0.2.1 fixes the issue.

Here's my task config:

    critical: {
      options: {
        base: '<%= config.dist %>',
        minify: true,
        width: 1440,
        height: 900,
        ignore: [
          '@font-face',
          '@import'
        ]
      },
      pages: {
        expand: true,
        cwd: '<%= config.dist %>',
        src: '{,**/}*.html',
        dest: '<%= config.dist %>',
      }
    },

@SergRad
Copy link

SergRad commented Feb 3, 2017

Thanks lukebussey ! It`s worked!

@oleksiidrozdenko
Copy link

oleksiidrozdenko commented Mar 25, 2017

How to downgrade to 0.2.1?
Google doesn't help me... I found a certain commit on github, downloaded it on my machine but don't understand how to install it with npm install --save-dev grunt-critical. Thanks!

@SergRad
Copy link

SergRad commented Mar 26, 2017

Hi oleksiidrozdenko.
Are you tried this ? : npm install [email protected] --save-dev
Plugin page : https://www.npmjs.com/package/grunt-critical

@oleksiidrozdenko
Copy link

Hi, thanks a lot: it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants