# grunt-htmlcomb

> HTMLComb plugin for Grunt.

Latest version **0.3.0** (published 2015-09-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-htmlcomb
pnpm add grunt-htmlcomb
yarn add grunt-htmlcomb
bun add grunt-htmlcomb
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-09-03 |
| First published | 2014-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fengyuan Chen |
| Maintainers | fengyuanchen |
| Keywords | grunt, plugin, gruntplugin, grunt-plugin, html, comb, format, javascript, front-end, web, development |

## Links

- npm: https://www.npmjs.com/package/grunt-htmlcomb
- Repository: https://github.com/fengyuanchen/grunt-htmlcomb
- Homepage: https://github.com/fengyuanchen/grunt-htmlcomb#readme
- Issues: https://github.com/fengyuanchen/grunt-htmlcomb/issues
- npm.io page: https://npm.io/package/grunt-htmlcomb

## Dependencies (1)

- [htmlcomb](https://npm.io/package/htmlcomb.md) ~0.3.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2015-09-03
- 0.2.0 — 2015-03-16
- 0.1.0 — 2014-11-13

## README

# [grunt-htmlcomb](https://github.com/fengyuanchen/grunt-htmlcomb)

> [HTMLComb](https://github.com/fengyuanchen/htmlcomb) plugin for [Grunt](http://gruntjs.com).


## Getting Started
This plugin requires Grunt `~0.4.5`

If 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:

```shell
npm install grunt-htmlcomb
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-htmlcomb');
```

## The "htmlcomb" task

### Overview
In your project's Gruntfile, add a section named `htmlcomb` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  htmlcomb: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});
```

### Options

See the [HTMLComb options](https://github.com/fengyuanchen/htmlcomb#options).


### Usage Examples

#### Default Options

```js
grunt.initConfig({
  htmlcomb: {
    foo: {
      files: {
        'dest/formatted-foo.css': ['src/foo.css']
      }
    },
    bar: {
      files: {
        'dest/formatted-foo.css': ['src/foo.css'],
        'dest/formatted-bar.css': ['src/bar.css']
      }
    }
  },
});
```

#### Custom Options

```js
grunt.initConfig({
  htmlcomb: {
    dist: {
      options: {
        removeEmptyValue: false
      },
      files: {
        'dest/formatted-foo.css': ['src/foo.css']
      }
    }
  },
});
```

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).


## [License](LICENSE.md)

[MIT](http://opensource.org/licenses/MIT) © [Fengyuan Chen](http://github.com/fengyuanchen)

---
_Source: https://npm.io/package/grunt-htmlcomb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
