MohamedLamineAllal / laravel-mix-glob

Laravel mix extension that add glob support.
MIT License
20 stars 6 forks source link

.version() #44

Closed RMK147 closed 3 years ago

RMK147 commented 3 years ago

Hello,

I'm having issues when using .version() in the following for example:

mixGlob.sass('app/Modules/**/Resources/assets/admin/sass/*.scss', 'public/css') .version();

Is this not supported or am I using it incorrectly?

MohamedLamineAllal commented 3 years ago

Hello,

laravel-mix-glob as is now! Through it's normal api it extends all methods to support globs (in a no selective manner)! Only methods that take files are to be used directly! And anything else like version() here or extract(), are to be called from laravel mix instance directly!

That can be done as such

mixGlob.sass('app/Modules/**/Resources/assets/admin/sass/*.scss', 'public/css').mix('version')();

I mentionned that in the documentation! you can check use of laravel-mix itself (CTRL + F)!

Now through that issue i got that it's important to add direct support to those specific methods! (so in the next update .version() should be usable directly! And all other methods of same nature!

I'm counting too to re-write the documentation to be simpler and of better experience!