Skip to content

timohausmann/MinifyPageRender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinifyPageRender

Simple HTML minifier for ProcessWire.

This module hooks after Page::render and runs a simple minification.

I mostly put this together for cosmetics. I like my View source neat and tidy.

This is not well tested yet, please open an issue if you run into problems.

Minification code

The minify function source code was taken from StackOverflow: https://stackoverflow.com/a/29363569/860205

Quote from the author:

This code removes redundant empty spaces. Also it plays it safe and does not remove anything that could potentially break HTML, JS or CSS.

Screenshot

Alt text

Changelog

1.0.1

  • Disabled one rule falsely removing whitespace in the character sequence ), something like (CEO), 2015

1.0.0

  • Initial release

About

Simple HTML minifier for ProcessWire.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published