Skip to content

Commit c6255d1

Browse files
committed
Fix data uri source to dist one
1 parent a716cf7 commit c6255d1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gulpfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ var getEmoticonFilter = function(){
6767
})
6868
};
6969

70-
const imageAndStyles = gulp.series(copyStyles, dataURI, function () {
71-
const emojiPath = paths.dist.images.separate
72-
del(emojiPath);
70+
function copyImages () {
71+
del(paths.dist.images.separate);
7372

7473
const emojiMap = require('emoji-datasource-apple').reduce((acc, emoji) => Object.assign(acc, {
7574
[emoji.image]: emoji
@@ -84,15 +83,17 @@ const imageAndStyles = gulp.series(copyStyles, dataURI, function () {
8483
file.basename = emojiData.short_name
8584
file.dirname = './'
8685
}))
87-
.pipe(gulp.dest(emojiPath))
88-
})
86+
.pipe(gulp.dest(paths.dist.images.separate))
87+
}
88+
exports.copyImages = copyImages
8989

90+
const imageAndStyles = gulp.series(copyImages, copyStyles, dataURI)
9091
exports.imageAndStyles = imageAndStyles
9192

9293
function dataURI () {
9394
const emoticonFilter = getEmoticonFilter();
9495

95-
return gulp.src('./src/images/emoji/*.png')
96+
return gulp.src(`${paths.dist.images.separate}/*.png`)
9697
.pipe($.imageDataUri({
9798
customClass: function(className){
9899
return 'emoji-' + className

0 commit comments

Comments
 (0)