Permalink
Browse files

Merge pull request #1995 from Taritsyn/master

Add `PreserveCase` property to HTML minification settings
  • Loading branch information...
2 parents fa5889c + 0b94f5b commit bbd0ccf0f6ecf3cc71cc2bd1866ff433cb2f9e32 @madskristensen committed Apr 6, 2016
@@ -68,6 +68,8 @@ public override string MinifyString(string source)
var weHtmlSettings = WESettings.Instance.Html;
var settings = new HtmlMinificationSettings
{
+ PreserveCase = weHtmlSettings.PreserveCase;
+
// Tags
RemoveOptionalEndTags = false,
//EmptyTagRenderMode = HtmlEmptyTagRenderMode.Slash,
@@ -256,6 +256,12 @@ public sealed class HtmlSettings : SettingsBase<HtmlSettings>, IMinifierSettings
public bool MinifyKnockoutBindingExpressions { get; set; }
[Category("Minification")]
+ [DisplayName("Preserve case of tag and attribute names")]
+ [Description("Preserve case of HTML tag and attribute names during minification.")]
+ [DefaultValue(false)]
+ public bool PreserveCase { get; set; }
+
+ [Category("Minification")]
[DisplayName("Processable script types")]
[Description(@"Specify comma-separated list of types of script tags, that are processed by minifier (e.g. ""text/html, text/ng-template"").")]
[DefaultValue(null)]
@@ -238,9 +238,9 @@
<Reference Include="System.Xaml" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
- <Reference Include="WebMarkupMin.Core, Version=0.9.12.0, Culture=neutral, PublicKeyToken=99472178d266584b, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\WebMarkupMin.Core.0.9.12\lib\net40\WebMarkupMin.Core.dll</HintPath>
+ <Reference Include="WebMarkupMin.Core, Version=1.1.0.0, Culture=neutral, PublicKeyToken=99472178d266584b, processorArchitecture=MSIL">
+ <HintPath>..\packages\WebMarkupMin.Core.1.1.0\lib\net40\WebMarkupMin.Core.dll</HintPath>
+ <Private>True</Private>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="ZenCoding, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
@@ -6,5 +6,5 @@
<package id="Minimatch" version="1.1.0" targetFramework="net451" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net451" />
<package id="TransientFaultHandling.Core" version="5.1.1209.1" targetFramework="net451" />
- <package id="WebMarkupMin.Core" version="0.9.12" targetFramework="net451" />
+ <package id="WebMarkupMin.Core" version="1.1.0" targetFramework="net451" />
</packages>

0 comments on commit bbd0ccf

Please sign in to comment.