This package has been deprecated

Author message:

This package is no longer maintained.

grunt-prune-html

0.1.1 • Public • Published

grunt-prune-html

Grunt plugin for pruning HTML strings using prune-html.

Installation

Install grunt-prune-html by running:

npm install grunt-prune-html

Documentation

prune_html: {
    templates: {
        expand: true,
        src: 'app/**/*.html',
        dest: 'build/tmp/pruned_templates',
    },
    // filter is invoked with `this` as a cheerio object.
    // You can use cheerio attributes: http://cheeriojs.github.io/cheerio/#attributes
    options: {
        filter: function () { return this.attr('prune') !== undefined; },
    },
},

grunt.loadNpmTasks('grunt-prune-html');

Contribute

  • Issue Tracker: github.com/bodylabs/grunt-prune-html/issues
  • Source Code: github.com/bodylabs/grunt-prune-html

License

The project is licensed under the two-clause BSD license.

Package Sidebar

Install

npm i grunt-prune-html

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • paulmelnikow
  • qmaurmann