@io-arc/task-webp-converter
PNG, JPG, GIF files to Webp files conversions.
Using @io-arc/webp-converter
Usage#
Or
package.json
Configuration#
The configuration is written in config/(default|local).yml.
Multiple targets can be specified.
local.yml
Only target are required.
target#
Required.Target directories name array for image files used converter.
ext#
Target extensions.
Default
options#
Convert options for PNG and JPG.
Default: See the imagemin-webp options.
gifOptions#
Convert options for GIF.
Default: See the imagemin-gif2webp options.
output#
Output directories name array.
Default same as target.
deleteBefore#
Delete the webp file before starting the task.
Default: true