0.0.0 • Published 5 years ago

postmix v0.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Postmix

styled with prettier Travis Coveralls

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 } = require('postmix');

postmix.images('resources/assets/images', 'public/images', { webp: true });

npm.io