All Projects → deanhume → Html Minifier

deanhume / Html Minifier

Licence: mit
A simple command line tool to minify your HTML, Razor views & Web Forms views

Labels

Projects that are alternatives of or similar to Html Minifier

pagespeedParseR
pagespeedParseR is an R wrapper for Google Pagespeed Insights API, that also enables convenient parsing
Stars: ✭ 20 (-83.74%)
Mutual labels:  pagespeed
Webp server go
Go version of WebP Server. A tool that will serve your JPG/PNGs as WebP format with compression, on-the-fly.
Stars: ✭ 543 (+341.46%)
Mutual labels:  pagespeed
Jquery.lazy
A lightweight, fast, feature-rich, powerful and highly configurable delayed content, image and background lazy loading plugin for jQuery & Zepto.
Stars: ✭ 965 (+684.55%)
Mutual labels:  pagespeed
PageSpeed-Badges
Flex your perf muscles 💪 Badges for displaying PageSpeed Insights stats
Stars: ✭ 12 (-90.24%)
Mutual labels:  pagespeed
Nginx Autoinstall
Compile Nginx from source with custom modules on Debian and Ubuntu
Stars: ✭ 443 (+260.16%)
Mutual labels:  pagespeed
Incubator Pagespeed Mod
Apache module for rewriting web pages to reduce latency and bandwidth.
Stars: ✭ 640 (+420.33%)
Mutual labels:  pagespeed
nginx-more
Development repository for nginx-more package
Stars: ✭ 96 (-21.95%)
Mutual labels:  pagespeed
Gp Vue Boilerplate
Grabarz & Partner Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites with vuejs.
Stars: ✭ 71 (-42.28%)
Mutual labels:  pagespeed
Incubator Pagespeed Ngx
Automatic PageSpeed optimization module for Nginx
Stars: ✭ 4,327 (+3417.89%)
Mutual labels:  pagespeed
Nano Nginx
Nano container with nginx preconfigured as reverse proxy
Stars: ✭ 15 (-87.8%)
Mutual labels:  pagespeed
docker-alpine-nginx-pagespeed
Dockerized Nginx with PageSpeed Module on Alpine Linux
Stars: ✭ 28 (-77.24%)
Mutual labels:  pagespeed
howfast
A simple CLI for generating more accurate data from Lighthouse reports.
Stars: ✭ 15 (-87.8%)
Mutual labels:  pagespeed
Vestacp nginx pagespeed http2
Rebuild Nginx with Google PageSpeed and http/2 for VestaCP
Stars: ✭ 16 (-86.99%)
Mutual labels:  pagespeed
phpinsights
A versatile PHP Library for Google PageSpeed Insights
Stars: ✭ 109 (-11.38%)
Mutual labels:  pagespeed
Magento2 Plugin
Speed up your Magento 2 webshop. Optimize your JPEG and PNG images automatically with TinyPNG.
Stars: ✭ 38 (-69.11%)
Mutual labels:  pagespeed
awesome-performance-testing
A collection of awesome performance testing resources
Stars: ✭ 125 (+1.63%)
Mutual labels:  pagespeed
Web Monitoring
前端监控,性能监控平台。The front end monitoring platform focuses on Web end experience data monitoring. Three aspects of the health of Web pages are monitored: page opening speed (speed measurement), page stability (JS Error), and external service call success rate (API).
Stars: ✭ 592 (+381.3%)
Mutual labels:  pagespeed
Kabarvirus
KabarVirus.com: cepat (PageSpeed 100), ringan (10 KB)
Stars: ✭ 109 (-11.38%)
Mutual labels:  pagespeed
Docker Google Lighthouse
Google Lighthouse - Docker Image
Stars: ✭ 46 (-62.6%)
Mutual labels:  pagespeed
Pagespeed Score
DEPRECATED - use GoogleChrome/lighthouse-ci instead
Stars: ✭ 18 (-85.37%)
Mutual labels:  pagespeed

HTML Minifier

A simple command line tool to minify your HTML, Razor views & Web Forms views. By minifying your HTML on bigger web pages, you will save on bytes that your users need to donwload. Less bytes equal faster web pages & faster web pages equal happy users!

Getting Started

Go from HTML that looks like this:

<h2>
    Admin Menu</h2>
<ul>
    <li>@Html.ActionLink("Edit blog entries", "List", "Admin")</li>
    <li>@Html.ActionLink("View Comments", "CommentList", "Admin")</li>
    <li>@Html.ActionLink("Clear Cache", "ClearCache", "Admin")</li>
</ul>

To HTML that looks like this:

<h2> Admin Menu</h2><ul><li>@Html.ActionLink("Edit blog entries", "List", "Admin")</li><li>@Html.ActionLink("View Comments", "CommentList", "Admin")</li><li>@Html.ActionLink("Clear Cache", "ClearCache", "Admin")</li></ul>

Usage Examples

In order to use from the command line, you simply pass through a folder path that contains all of the files you want to minify. The minifier will process all images in the root and subfolders.

C:\>HtmlMinifier.exe "C:\Folder"

If you'd like to restrict the number of characters per line and force it to break to the next line, use the minifier with the following optional value (where the number is the max character count).

C:\>HtmlMinifier.exe "C:\Folder" "60000"

There is also the option to disable certain minification features. For example, if you use a you rely on HTML comments (Knockout, Angular, etc.) you might want to leave them in the minified HTML.

C:\>HtmlMinifier.exe "C:\Folder" ignorehtmlcomments

You can also disable the minification of JavaScript Comments

C:\>HtmlMinifier.exe "C:\Folder" ignorejscomments

If you use knockoutJS, you can optionally disable the minification of Knockout Comments

C:\>HtmlMinifier.exe "C:\Folder" ignoreknockoutcomments

If you want to minify individual folders you can do:

C:\>HtmlMinifier.exe "C:\Folder\fld1" "C:\Folder\fld2"

If you want to minify individual files you can do:

C:\>HtmlMinifier.exe "C:\Folder\file1.html" "C:\Folder\file2.html"

If you'd like to find out how to use this with MSBUILD and your next publish, please follow this link.

License

(C) Dean Hume 2019, released under the MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].