-
Please help! I have no idea what is happening! Here is the task that I'm using: function moveIMG(){
return src('./src/imgs/*')
.pipe(dest('./build/imgs'))
} The side-by-side of the before and after the move: Here is the file structure:
Do I have to set a specific propriety when moving images? Do I HAVE to use imagemin to do this kind of operation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
u must add {encoding: false} to src |
Beta Was this translation helpful? Give feedback.
-
function assetsCopy() {
return gulp
.src("./src/assets/**", {
+ encoding: false,
})
.pipe(gulp.dest("./dist/assets"));
} With the above code change, the issue with the font files (otf, ttf, woff, woff2) not loading has been resolved! Thank you ❤️ |
Beta Was this translation helpful? Give feedback.
Updating to version 5 broke my gulpfile.js scripts, too. 😭
Adding
, { encoding: false }
as a second parameter togulp.src()
fixed it for me, too.The documentation of
src()
does not mention theencoding
option at all.