2.2.3 • Published 4 years ago

html-minifier-webpack-plugin v2.2.3

Weekly downloads
1,290
License
MIT
Repository
github
Last release
4 years ago

HTMLMinifier Webpack Plugin

A Webpack plugin to minimize HTML files.

What does the plugin do?

It will search for HTML files during the Webpack build and will minimize the HTML with HTMLMinifier.

Configuration:

The plugin pass the configuration to HTMLMinifier, defaults to {}.

Example:

var HtmlMinifierPlugin = require('html-minifier-webpack-plugin');
module.exports = {
	module: {
		loaders: [
			{ test: /\.html$/, loaders: ['file-loader?name=[name].html', 'extract-loader', 'html-loader'] }
		]
	},
	plugins: [
        new HtmlMinifierPlugin({
            // HTMLMinifier options
        })
	]
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)

2.2.3

4 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago