# html-webpack-exclude-empty-assets-plugin

> Add the ability to exclude empty assets

Latest version **0.1.4** (published 2020-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-webpack-exclude-empty-assets-plugin
pnpm add html-webpack-exclude-empty-assets-plugin
yarn add html-webpack-exclude-empty-assets-plugin
bun add html-webpack-exclude-empty-assets-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-06-14 |
| First published | 2018-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Markus Wolf |
| Maintainers | knisterpeter |
| Keywords | webpack, plugin, html-webpack-plugin, exclude, assets |

## Links

- npm: https://www.npmjs.com/package/html-webpack-exclude-empty-assets-plugin
- Repository: https://github.com/KnisterPeter/html-webpack-exclude-empty-assets-plugin
- Issues: https://github.com/KnisterPeter/html-webpack-exclude-empty-assets-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-exclude-empty-assets-plugin

## 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.1.4 (latest) — 2020-06-14
- 0.1.3 — 2020-05-21
- 0.1.1 — 2018-04-26
- 0.1.0 — 2018-03-15

## README

> HtmlWebpackExcludeEmptyAssetsPlugin

This will prevent the HtmlWebpackPlugin from adding empty assets into the html.

# Usage

```js
const HtmlWebpackExcludeEmptyAssetsPlugin = require('html-webpack-exclude-empty-assets-plugin');

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

## All Configuration Options

The HtmlWebpackExcludeEmptyAssetsPlugin accepts an object of options with the following attributes:

```js
new HtmlWebpackExcludeEmptyAssetsPlugin({,
  minBytes: 1024
})
```

* `minBytes` - the minimum byte size a file has to meet to not be deleted. Defaults to 1024 bytes.

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