Socket
Book a DemoInstallSign in
Socket

grunt-minify-html

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-minify-html

Minify HTML

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

grunt-minify-html Build Status

Minify HTML using minimize

Issues with the output should be reported on the minimize issue tracker.

This differs from grunt-contrib-htmlmin in that it uses a proper HTML-parser instead of a bunch of fragile regexes.

Install

$ npm install --save-dev grunt-minify-html

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	minifyHtml: {
		options: {
			cdata: true
		},
		dist: {
			files: {
				'dist/index.html': 'src/index.html'
			}
		}
	}
});

grunt.registerTask('default', ['minifyHtml']);

Options

See the minimize options.

License

MIT © Sindre Sorhus

Keywords

gruntplugin

FAQs

Package last updated on 11 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts