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

Incorrect error message? #81

Open
kokarn opened this issue Apr 2, 2015 · 0 comments
Open

Incorrect error message? #81

kokarn opened this issue Apr 2, 2015 · 0 comments
Labels

Comments

@kokarn
Copy link
Contributor

kokarn commented Apr 2, 2015

I've been using this plugin for a while and it's been working great.

Today however, I got the following error all of a sudden

Warning: Unable to resize more than one image in compact or files object format.
For multiple files please use the files array format.

The config looks like this and hasn't changed for a long time (and used to work like two weeks ago).

ingame : {
    options : {
        sizes : [{
            name : 'ingame',
            height : 64,
            width: 64,
            rename: false,
            aspectRatio: false
        }]
    },
    files : [{
        expand: true,
        cwd: 'teams/',
        src: [ '**/*.png' ],
        dest: 'web/resources/ingame/',
        rename: function( dest, src ){
            var data = jf.readFileSync( 'teams/' + src.split( '/' )[ 0 ] + '/data.json' );
            return dest + data.steam.name + '.png';
        }
    }]
},

However, if I just remove the check by commenting it out here https://github.com/andismith/grunt-responsive-images/blob/master/tasks/responsive_images.js#L223-L224 it works as intended.

Has something perhaps changed with the newer versions of node? I'm currently on 0.12.2 but it did the same on 0.12.0.

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

No branches or pull requests

2 participants