filamentgroup / grunt-criticalcss

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

ignoreConsole flag doesn't seem to work #49

Closed MickeyKay closed 1 year ago

MickeyKay commented 6 years ago

I've set the ignoreConsole options flag to true, but I'm still seeing my task fail with the following error:

Something went wrong with phantomjs...
Fatal error: PHANTOM ERROR: Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.
TRACE:
 -> https://{our-url}/bundle.0d0f29608ee9b4bc15a9.js: 1 (in function e)

This is my current config:

criticalcss: {
    single : {
        options: {
            url: "https://{our-url}",
            width: 1200,
            height: 900,
            outputfile: get_destination_file( 'less', 'single', true ),
            filename: get_destination_file( 'less', 'app', true ),
            buffer: 8000*1024,
            ignoreConsole: true
        }
    },
},

Is there something wrong with this config? Any reason why ignoreConsole wouldn't be working? Thanks!

jiimmeh commented 5 years ago

+1 Same problem here. Any workarounds?