Postmix
Extending the 80% use case of Laravel Mix with additional functionality.
This package was developed
to complement Mix, and as such won't implement functionality already available in Mix. However, it does not depend on Mix, and can be used independently in any kind of application.
Features
- Image optimization with imagemin
- Create webp versions of images
Usage
npm install --dev postmix
Then, import and use the library in your mix file:
const postmix = ; postmiximages'resources/assets/images' 'public/images' webp: true ;