nathanmac / laravel-elixir-imagemin

Laravel Elixir wrapper for ImageMin
MIT License
52 stars 14 forks source link

custom directories supported? #19

Open huglester opened 8 years ago

huglester commented 8 years ago

Hello, I have added:

elixir.config.images = {
    folder: './addons/default/themes/defeault/gittheme/img/',
    outputFolder: './assets/build/img/'
};

Later in the code: mix.imagemin(), But I get: [00:03:56] Starting 'imagemin'... [00:03:56] gulp-imagemin: Minified 0 images [00:03:56] Finished 'imagemin' after 11 ms

What I could be doing wrong?

Metrakit commented 8 years ago

same mistake

jeffochoa commented 8 years ago

I get the same result.. only works with the default paths

fdeneux commented 8 years ago

+1

bmf-san commented 8 years ago

I have same problem too.

fobus42 commented 8 years ago

+1

L1lle commented 7 years ago

+1

Snaver commented 7 years ago

This seems to work for me

elixir.config.assetsPath = './theme-assets';
elixir.config.publicPath = './httpdocs/wp-content/themes/xxx/assets';

elixir.config.images = {
    folder: 'images',
    outputFolder: 'images'
};
AlaaAttya commented 7 years ago

i've the same issue too