I'm trying to make the gulp minify the images of my project. My project is laravel 5.3 and I'm using the laravel-elixir-imagemin thumb to minify, but when I give the command gulp imagemin
the following result appears:
Please note that it does not recognize the resources/assets/images
source folder and says that it did not minify any images. Anyway, I've tried various configurations for gulp and nothing.
Follow the code:
const elixir = require('laravel-elixir');
const gulp = require('gulp');
const watch = require('gulp-watch');
require('laravel-elixir-imagemin');
elixir.config.sourcemaps = true;
elixir(function (mix) {
mix.sass('app.scss');
mix.imagemin();
mix.scripts(
[
'vendor/jquery.js',
'vendor/bootstrap.js',
'script.js'
],
'public/js/app.js');
});