From fd992d51748b46e544562d65b84dccc460b819cf Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 19 Apr 2016 17:37:35 +0100 Subject: [PATCH] Updated Readme and bumped version --- HtmlMinifier.Tests/Properties/AssemblyInfo.cs | 4 ++-- README.md | 14 +++++++++++--- ViewMinifier/Program.cs | 2 ++ ViewMinifier/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/HtmlMinifier.Tests/Properties/AssemblyInfo.cs b/HtmlMinifier.Tests/Properties/AssemblyInfo.cs index 60ac3f1..98c57a8 100644 --- a/HtmlMinifier.Tests/Properties/AssemblyInfo.cs +++ b/HtmlMinifier.Tests/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.7.0.0")] -[assembly: AssemblyFileVersion("1.7.0.0")] +[assembly: AssemblyVersion("1.8.0.0")] +[assembly: AssemblyFileVersion("1.8.0.0")] diff --git a/README.md b/README.md index a385a33..02e0d8a 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,21 @@ To HTML that looks like this: ## Usage Examples -In order to use from the command line, you simply pass through a folder path that contains all your images. The minifier will process all images in the root and subfolders. +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:\ImagesFolder" + 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:\ImagesFolder" "60000" + 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'd like to find out how to use this with MSBUILD and your next publish, please follow this [link.](http://deanhume.com/Home/BlogPost/a-simple-html-minifier-for-asp-net/2097) diff --git a/ViewMinifier/Program.cs b/ViewMinifier/Program.cs index 5dc0752..9f306d0 100644 --- a/ViewMinifier/Program.cs +++ b/ViewMinifier/Program.cs @@ -30,6 +30,8 @@ static void Main(string[] args) { if (filePath.IsHtmlFile()) { + Console.WriteLine("Beginning Minification"); + // Minify contents string minifiedContents = MinifyHtml(filePath, features); diff --git a/ViewMinifier/Properties/AssemblyInfo.cs b/ViewMinifier/Properties/AssemblyInfo.cs index 3da4011..c12b185 100644 --- a/ViewMinifier/Properties/AssemblyInfo.cs +++ b/ViewMinifier/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.7.0.0")] -[assembly: AssemblyFileVersion("1.7.0.0")] +[assembly: AssemblyVersion("1.8.0.0")] +[assembly: AssemblyFileVersion("1.8.0.0")]