0
I am trying to make Gulp minify the images of my project. My project is Laravel 5.3 and I am using lib Laravel-elixir-imagemin Gulp to minify, only when I give the command gulp imagemin
appears the following result:
Note that it does not recognize the folder resources/assets/images
source and says that it has not minified any image. Anyway, I have tried several settings for Gulp and nothing.
Follows 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');
});