html-webpack-exclude-empty-assets-plugin

0.1.4 • Public • Published

HtmlWebpackExcludeEmptyAssetsPlugin

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

Usage

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:

new HtmlWebpackExcludeEmptyAssetsPlugin({,
  minBytes: 1024
})
  • minBytes - the minimum byte size a file has to meet to not be deleted. Defaults to 1024 bytes.

Package Sidebar

Install

npm i html-webpack-exclude-empty-assets-plugin

Weekly Downloads

60

Version

0.1.4

License

MIT

Unpacked Size

7.22 kB

Total Files

5

Last publish

Collaborators

  • knisterpeter