{
  "name": "grunt-contrib-htmlmin",
  "description": "Minify HTML",
  "version": "0.2.0",
  "author": {
    "name": "Grunt Team",
    "url": "http://gruntjs.com/"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/gruntjs/grunt-contrib-htmlmin"
  },
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/gruntjs/grunt-contrib-htmlmin/blob/master/LICENSE-MIT"
    }
  ],
  "engines": {
    "node": ">= 0.8.0"
  },
  "scripts": {
    "test": "grunt test"
  },
  "dependencies": {
    "html-minifier": "~0.5.0",
    "chalk": "~0.4.0",
    "each-async": "~0.1.2",
    "pretty-bytes": "~0.1.0"
  },
  "devDependencies": {
    "grunt-contrib-internal": "~0.4.4",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-jshint": "~0.8.0",
    "grunt-contrib-nodeunit": "~0.3.0",
    "grunt": "~0.4.2"
  },
  "peerDependencies": {
    "grunt": "~0.4.0"
  },
  "keywords": [
    "gruntplugin",
    "html",
    "min",
    "minify",
    "compress"
  ],
  "files": [
    "tasks",
    "LICENSE-MIT"
  ],
  "readme": "# grunt-contrib-htmlmin [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-htmlmin.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-htmlmin)\n\n> Minify HTML\n\nMinifies HTML using [html-minifier](https://github.com/kangax/html-minifier).\n\n**Bugs regarding the output should be reported on the [html-minifier issue tracker](https://github.com/kangax/html-minifier/issues/new), not here.**\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-htmlmin --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-htmlmin');\n```\n\n\n\n\n## Htmlmin task\n_Run this task with the `grunt htmlmin` command._\n\n\n### Options\n\nSee the [html-minifier docs](http://perfectionkills.com/experimenting-with-html-minifier/#options) for more in-depth explanation of the options and caveats.\n\n#### removeComments\n\nType: `Boolean`  \nDefault: `false`\n\nStrip HTML comments.\n\n#### removeCommentsFromCDATA\n\nType: `Boolean`  \nDefault: `false`\n\nRemove HTML comments from inside `<script>` and `<style>`.\n\n#### removeCDATASectionsFromCDATA\n\nType: `Boolean`  \nDefault: `false`\n\nRemove CDATA sections from inside `<script>` and `<style>`.\n\n#### collapseWhitespace\n\nType: `Boolean`  \nDefault: `false`\n\nCollapse white space that contributes to text nodes in a document tree.\n\nIt doesn't affect significant white space; e.g. in contents of elements like SCRIPT, STYLE, PRE or TEXTAREA.\n\n`<div> <p>    foo </p>    </div>` => `<div><p>foo</p></div>`\n\n#### collapseBooleanAttributes\n\nType: `Boolean`  \nDefault: `false`\n\nCollapse boolean attributes.\n\n`<input disabled=\"disabled\">` => `<input disabled>`\n\n#### removeAttributeQuotes\n\nType: `Boolean`  \nDefault: `false`\n\nRemove attribute quotes when it's safe to do so.\n\n`<p id=\"foo\">` => `<p id=foo>`\n\n#### removeRedundantAttributes\n\nType: `Boolean`  \nDefault: `false`\n\nRemove redundant attributes like `type=\"text/javascript\"`.\n\n#### useShortDoctype\n\nType: `Boolean`  \nDefault: `false`\n\nReplace doctype with the short HTML5 version `<!DOCTYPE html>`.\n\n#### removeEmptyAttributes\n\nType: `Boolean`  \nDefault: `false`\n\nRemove empty (or blank) attributes.\n\n#### removeOptionalTags\n\nType: `Boolean`  \nDefault: `false`\n\nSome elements are allowed to have their tags omitted, like `</td>`.\n\n#### removeEmptyElements\n\nType: `Boolean`  \nDefault: `false`\n\nRemove empty elements.\n\n*Experimental*\n\n#### Example config\n\n```javascript\ngrunt.initConfig({\n  htmlmin: {                                     // Task\n    dist: {                                      // Target\n      options: {                                 // Target options\n        removeComments: true,\n        collapseWhitespace: true\n      },\n      files: {                                   // Dictionary of files\n        'dist/index.html': 'src/index.html',     // 'destination': 'source'\n        'dist/contact.html': 'src/contact.html'\n      }\n    },\n    dev: {                                       // Another target\n      files: {\n        'dist/index.html': 'src/index.html',\n        'dist/contact.html': 'src/contact.html'\n      }\n    }\n  }\n});\n\ngrunt.registerTask('default', ['htmlmin']);\n```\n\n\n## Release History\n\n * 2013-04-06   v0.1.3   Fail target when minify encounters an error.\n * 2013-04-05   v0.1.2   Update html-minifier which fixes IE conditional comments and prefixed HTML elements `<ng-include>` `<ng:include>`.\n * 2013-02-18   v0.1.1   First official release for Grunt 0.4.0.\n * 2013-01-30   v0.1.1rc7   Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-09   v0.1.1rc5   Updating to work with grunt v0.4.0rc5. Switching to this.filesSrc api.\n * 2012-11-01   v0.1.0   Initial release.\n\n---\n\nTask submitted by [Sindre Sorhus](http://github.com/sindresorhus)\n\n*This file was generated on Sat Apr 06 2013 14:28:13.*\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/gruntjs/grunt-contrib-htmlmin/issues"
  },
  "homepage": "https://github.com/gruntjs/grunt-contrib-htmlmin",
  "_id": "grunt-contrib-htmlmin@0.2.0",
  "_from": "grunt-contrib-htmlmin@0.2.0"
}
