The Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
WebMarkupMin absorbed the best of existing solutions from non-microsoft platforms: Juriy Zaytsev's Experimental HTML Minifier (written in JavaScript) and Sergiy Kovalchuk's HtmlCompressor (written in Java).
Minification of markup produces by removing extra whitespace, comments and redundant code (only for HTML and XHTML). In addition, HTML and XHTML minifiers supports the minification of CSS code from style
tags and attributes, and minification of JavaScript code from script
tags, event attributes and hyperlinks with javascript:
protocol. WebMarkupMin.Core contains built-in JavaScript minifier based on the Douglas Crockford's JSMin and built-in CSS minifier based on the Mads Kristensen's Efficient stylesheet minifier. The above mentioned minifiers produce only the most simple minifications of CSS and JavaScript code, but you can always install additional modules that support the more powerful algorithms of minification: WebMarkupMin.MsAjax (contains minifier-adapters for the Microsoft Ajax Minifier), WebMarkupMin.Yui (contains minifier-adapters for YUI Compressor for .Net) and WebMarkupMin.NUglify (contains minifier-adapters for the NUglify).
Also supports minification of views of popular JavaScript template engines: KnockoutJS, Kendo UI MVVM and AngularJS 1.X.
In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.AspNet4.HttpModules (for ASP.NET 4.X and ASP.NET Web Pages), WebMarkupMin.AspNet4.Mvc (for ASP.NET MVC 3, 4 or 5), WebMarkupMin.AspNet4.WebForms (for ASP.NET Web Forms 4.X), WebMarkupMin.AspNetCore1 (for ASP.NET Core 1.X) and WebMarkupMin.AspNetCore2 (for ASP.NET Core 2.X).
You can try WebMarkupMin in action and experiment with different minification settings live on the WebMarkupMin Online site.
- WebMarkupMin: Core (supports .NET Framework 4.0 Client, .NET Framework 4.5 and .NET Standard 1.3)
- WebMarkupMin: MS Ajax (supports .NET Framework 4.0 Client and .NET Framework 4.5)
- WebMarkupMin: YUI (supports .NET Framework 4.0 Client and .NET Framework 4.5)
- WebMarkupMin: NUglify (supports .NET Framework 4.0 Client, .NET Framework 4.5 and .NET Standard 1.3)
- WebMarkupMin: ASP.NET 4.X HTTP modules (supports .NET Framework 4.0)
- WebMarkupMin: ASP.NET 4.X MVC (supports .NET Framework 4.0)
- WebMarkupMin: ASP.NET 4.X Web Forms (supports .NET Framework 4.0)
- WebMarkupMin: ASP.NET Core 1.X (supports .NET Framework 4.5.1 and .NET Standard 1.3)
- WebMarkupMin: ASP.NET Core 2.X (supports .NET Standard 2.0)
Requires NuGet Package Manager version 2.8.6 or higher.
Documentation is located on the wiki of this Repo.
Source code and documentation for previous versions of WebMarkupMin are located on CodePlex. If you have used old versions of WebMarkupMin, then I recommend to first read “How to upgrade applications to version 2.X” section of the documentation.
If you use WebMarkupMin in some project, please send me a message so I can include it in this list:
- AngularTemplates.Compile by Vadim Ivanou
- Blog-Umbraco by Ernesto Chavez Sanchez
- Constellation.Sitecore.Presentation.Mvc by Rick Cabral
- FAV Rocks by Bill Boga
- File Sharing Application by Artur N
- iTEAMConsulting.FormHandler
- Orchard HTML Minifier by Liam 'Xeevis' Aqil
- MiniBlog by Mads Kristensen
- Minit by Joan Caron
- StaticWebHelper by Mads Kristensen
- Web Essentials 2013 by Mads Kristensen
- Wyam
- AllegheResort.it
- AutoThivolle.com
- BancoMercedes-Benz.com.br
- BeckerDVP.nl
- BrightFuture.Unilever.com
- BTAssurance.com
- Carot.vn
- CoastalRealestatePattaya.com
- DamBeton.nl
- DBIS.edu.hk
- Deqor.com
- DocShell.ru
- DProtein.com
- Fastimport.uy
- FAV.rocks by Bill Boga
- FMOutsource.com
- FreeNetworkAnalyzer.com
- FreTor.com
- Futuromelhor.Unilever.com.br
- Games.TecMundo.com.br
- GatwickParking.co.uk
- Gina.com
- Gnatta.com
- HHDSoftware.com
- HiHoliday.ir
- HospOnline.ru
- ImoRadar24.ro
- iStaff.ru
- Juhasz.cz
- KonyaSeker.com.tr
- Local.co.il
- LogixSuite.it
- Macingo.com
- MPCir.com
- music2me.de
- NEI.com.br
- nu.Faqtz.com
- OOS.SDU.edu.tr
- Oostwoud.com
- Oostwoud.de
- Osmanlilar.gen.tr
- OXXOshop.com
- Partners.1Gl.ru
- PisoTermico.com.br
- PlanetaKoles.ru
- PostRandomonium.com
- QuizPop.com.br
- SkillGamesBoard.com
- SkyPrimeAv.com
- SleepersInSeattle.com
- Songtradr.com
- Speak.nl
- Ster.nl
- StranaGruzov.ru
- SwedishMatch.com
- TecMundo.com.br
- togofogo.com
- TrailerRentals.com.au
- Ujat.mx
- Vindlov.se
- VogueBodrum.com
- VolareSystems.com
- WaNew.info
- WaNew.org
- WomensHealthNetwork.com
- WooshAirportExtras.com
- XemLichAm.com
- ZkontrolujsiAuto.cz
- Zolv.com