Skip to content

Commit

Permalink
Update gulpfile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tomap authored Jun 18, 2019
1 parent c47c333 commit cbcf2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ gulp.task('revreplace', function() {
if (!src) return;

// url encode the image path to handle cases where there is a space in image name
const srcEncoded = src.replace(' ', '%20');
const srcEncoded = encodeURI(src);

const jpgPath = replaceBackSlash(rename(srcEncoded, {extname: '.jpeg'}));
const jpg2xPath = replaceBackSlash(rename(jpgPath, {suffix: '@2x'}));
Expand Down

0 comments on commit cbcf2d0

Please sign in to comment.