andismith / grunt-responsive-images

Produce images at different sizes for responsive websites.
http://www.andismith.com/grunt-responsive-images/
MIT License
718 stars 96 forks source link

Allow for empty name property. #85

Closed waltfy closed 8 years ago

waltfy commented 9 years ago

use if (typeof properties.name !== undefined) { ... } instead of if (properties.name) { ... }, allowing for "empty" file names, meaning that you can provide a spec like:

{
    name: '',
    width: 768,
    suffix: '@2x',
    quality: 85
}

Meaning that you now can create a 'myfile@2x.jpg' for instance.