Convert JPG and PNG images to WebP with grunt task.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
$ npm install --save-dev grunt-cwebp
Please see following
Files are processed with node-cwebp-bin, you can also pass any native lib options, like
q. Native lib options which normally require no arguments (such as
low_memory) can be passed in by setting their respective arguments to true.
true, if you want to leave original file extension after converting to webp.