W
W
wakenbyWork2021-08-23 19:02:33
gulp.js
wakenbyWork, 2021-08-23 19:02:33

Is there any way to use a photo optimization plugin here?

In general, there is an assets folder, here are its contents:

Contents of the assets folder

6123c62e3c4da519313662.png


And there is a task that moves all files:
const { src, dest } = require('gulp')

module.exports = function assets () {
  return src('./app/assets/**/*', { nodir: true })
    .pipe(dest('./dist/assets'))
}


Is it possible to shove a photo optimization plugin here? And create webp?

Or is it necessary to start a new task for this and go through photos only?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question