# html-validate-webpack-plugin

> An html-validate.org webpack plugin

Latest version **1.2.1** (published 2022-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-validate-webpack-plugin
pnpm add html-validate-webpack-plugin
yarn add html-validate-webpack-plugin
bun add html-validate-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2022-02-03 |
| First published | 2021-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Matthew Waldron |
| Maintainers | waldronmatt |
| Keywords | html-validate, webpack, plugin, validate, html |

## Links

- npm: https://www.npmjs.com/package/html-validate-webpack-plugin
- Repository: https://github.com/waldronmatt/html-validate-webpack-plugin
- Homepage: https://github.com/waldronmatt/html-validate-webpack-plugin#readme
- Issues: https://github.com/waldronmatt/html-validate-webpack-plugin/issues
- npm.io page: https://npm.io/package/html-validate-webpack-plugin

## Dependencies (1)

- [schema-utils](https://npm.io/package/schema-utils.md) ^1.0.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

- 1.2.1 (latest) — 2022-02-03
- 1.2.0 — 2021-02-04
- 1.1.4 — 2021-02-03
- 1.1.1 — 2021-02-03
- 1.1.0 — 2021-02-03
- 1.0.1 — 2021-02-03
- 1.0.0 — 2021-02-03

## README

<div align="center">
  <a href="https://www.w3.org/html/logo/downloads/HTML5_1Color_Black.svg"><img width="200" height="200" src="https://www.w3.org/html/logo/downloads/HTML5_1Color_Black.svg"></a>
  <a href="https://webpack.js.org/assets/icon-square-big.svg"><img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"></a>
</div>

# html-validate-webpack-plugin

> An [html-validate.org](https://html-validate.org/) plugin for webpack

## About plugin

This plugin is a simple wrapper around the [html-validate.org](https://html-validate.org/) cli for automatic validation after each webpack compilation.

## Install

```bash
npm i -D html-validate-webpack-plugin
```

```bash
npm i -g html-validate
```

**Note**: You must have `html-validate` installed globally and create a `.htmlvalidate.json` at the project root with your [configurations](https://html-validate.org/usage/index.html).

## Usage

In your webpack configuration (development builds):

```js
const HtmlValidatePlugin = require('html-validate-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlValidatePlugin(),
  ],
};
```

## Options

You can pass select [html-validate.org cli options](https://html-validate.org/usage/cli.html).

### `path`

- Type: `String`
- Default: `'src/**/*'`

Specifies the directories/files for html-validate to search.

### `extensions`

- Type: `array`
- Default: `['html']`

Specifies the file extensions to use when searching for files in directories.

### `config`

- Type: `String`
- Default: `'.htmlvalidate.json'`

Specify a different configuration file.

**Note:** For your custom configuration omit the `.json` extension and supply the name only.

## Features

- `html-validate` [performs all validation locally](https://html-validate.org/#offline) which means you can use `html-validate` and `html-validate-webpack-plugin` offline.
- `html-validate-webpack-plugin` contains minimal dependencies.

## License

MIT

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