Skip to content

babyzone2004/fis-optimizer-htmlmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fis-optimizer-htmlmin

Minify HTML with fis

Getting Started

This plugin requires fis

If you haven't used fis before, be sure to check out the Getting Started guide, as it explains how to create a fis-conf.js as well as install and use fis plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install fis-optimizer-htmlmin -g

Htmlmin task

Run this task with the fis release -o command.

Minifies HTML using html-minifier. Bugs regarding the output should be reported here.

Options

See the html-minifier options.

Default Options

removeComments: true,
collapseWhitespace: true,
minifyJS: true

Example config

fis.config.merge({
	modules: {
		optimizer: {
			html: "htmlmin"
		}
	},
	settings: {
		optimizer: {
			"htmlmin": {
				minifyJS: false
			}
		}
	}
})

About

Minify HTML with fis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published