3.0.3 • Published 5 years ago
grunt-cwebp v3.0.3
grunt-cwebp
Convert JPG and PNG images to WebP with grunt task.
Install
$ npm install --save-dev grunt-cwebpUsage
Please see following gruntfile.js example.
module.exports = function (grunt) {
grunt.initConfig({
cwebp: {
static: {
files: {
'dist/img-png.webp': 'src/img.png',
'dist/img-jpg.webp': 'src/img.jpg',
'dist/img-gif.webp': 'src/img.gif'
}
},
dynamic: {
options: {
q: 50
},
files: [{
expand: true,
cwd: 'src/',
src: ['**/*.{png,jpg,gif}'],
dest: 'dist/'
}]
}
}
});
grunt.loadNpmTasks('grunt-cwebp');
};You can also pass the options like q: 50.
License
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.1.1
8 years ago
2.1.0
10 years ago
2.0.0
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
11 years ago
0.1.7
11 years ago
0.1.6
11 years ago
0.1.5
11 years ago
0.1.4
11 years ago
0.1.3
12 years ago
0.1.2
12 years ago
0.1.0
12 years ago