Closed waltfy closed 8 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:
if (typeof properties.name !== undefined) { ... }
if (properties.name) { ... }
{ name: '', width: 768, suffix: '@2x', quality: 85 }
Meaning that you now can create a 'myfile@2x.jpg' for instance.
use
if (typeof properties.name !== undefined) { ... }
instead ofif (properties.name) { ... }
, allowing for "empty" file names, meaning that you can provide a spec like:Meaning that you now can create a 'myfile@2x.jpg' for instance.