grunt-dwebp
v1.1.2
Published
Convert WebP images to PNG with grunt task.
Downloads
5
Readme
grunt-dwebp
Convert WebP images to PNG with grunt task.
Install
$ npm install --save-dev grunt-dwebp
Usage
Please see following gruntfile.js
example.
module.exports = function (grunt) {
grunt.initConfig({
dwebp: {
static: {
files: {
'dist/img.png': 'src/img.webp'
}
},
dynamic: {
files: [{
expand: true,
cwd: 'src/',
src: ['**/*.{png,jpg,gif}'],
dest: 'dist/'
}]
}
}
});
grunt.loadNpmTasks('grunt-dwebp');
};