loopion / spress-html-compress

Compress/minify your HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minify HTML

Spress 2 ready

Compress/minify your HTML

How to install?

Go to your Spress site and add the following to your composer.json and run composer update:

"require": {
    "paramonovav/spress-html-compress": "2.0.*"
}

How to use?

Add the following to your config.yml to exclude some files from minify/compress process:

html_compress_exclude: ['.htaccess','robots.txt','crossdomain.xml', 'sitemap.xml','nortonsw_bc7be3d0-796e-0.html','BingSiteAuth.xml']

Just run build command:

spress site:build

About

Compress/minify your HTML

License:MIT License


Languages

Language:PHP 100.0%