在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:deanhume/html-minifier开源软件地址:https://github.com/deanhume/html-minifier开源编程语言:C# 100.0%开源软件介绍:HTML MinifierA 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 StartedGo from HTML that looks like this:
To HTML that looks like this:
Usage ExamplesIn 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.
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).
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.
You can also disable the minification of JavaScript Comments
If you use knockoutJS, you can optionally disable the minification of Knockout Comments
If you want to minify individual folders you can do:
If you want to minify individual files you can do:
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 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论