grunt-dwebp

1.1.2 • Public • Published

grunt-dwebp

Convert WebP images to PNG with grunt task.

Build Status NPM version Dependency Status devDependency Status

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');
};

License

MIT © Shogo Sensui

Readme

Keywords

Package Sidebar

Install

npm i grunt-dwebp

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

23 kB

Total Files

7

Last publish

Collaborators

  • 1000ch