Andrey Taritsyn

Results 150 comments of Andrey Taritsyn

Hello, Abdul! In [version 2.17.0](https://github.com/Taritsyn/WebMarkupMin/releases/tag/v2.17.0) a new property was added to HTML and XHTML minification settings - `PreservableHtmlCommentList` (default is empty). `PreservableHtmlCommentList` property takes a сomma-separated list of string representations...

Hello, Marcel! I tried to minify your code by using the original library ([NUglify](https://github.com/trullock/NUglify)): ```csharp using NUglify; using NUglify.JavaScript; namespace TestNUglify { class Program { static void Main(string[] args) {...

By the way, you can also get a working code by using the `ManualRenamesProperties = false` setting.

The effect that you are trying to get by using the `RenamePairs` property can be achieved without manual settings. You just need to wrap your code in a [IIFE](https://developer.mozilla.org/en-US/docs/Glossary/IIFE): ```js...

Hello! There is no such possibility yet. When I have free time, I will try to implement the corresponding option. In any case, this is valid HTML code. You can...

As a temporary solution, you can wrap this tag in a [ignoring comment tags](https://github.com/Taritsyn/WebMarkupMin/wiki/Ignoring-fragments-of-markup): ```html ```

Hello, Sepehr! I added a website to the list.

Hello, Akaki! Swap the `services.AddSingleton()` and `services.AddWebMarkupMin(…)` calls and logging will work: ```csharp // adding services services.AddWebMarkupMin(options => { options.MaxResponseSize = -1; options.AllowMinificationInDevelopmentEnvironment = true; options.AllowCompressionInDevelopmentEnvironment = true; }) .AddHtmlMinification(options...

> Does order of registering services have any difference? Yes, there is a difference! When calling the `AddWebMarkupMin` method, the following code is executed: ```csharp services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); ``` In...

Hello, Akaki! [Version 2.18.0](https://github.com/Taritsyn/WebMarkupMin/releases/tag/v2.18.0) introduces two new features that can make it easier to solve your problem: 1. Services required by WebMarkupMin are now conditionally registered using the `TryAdd` methods....