tompazourek / razorhtmlminifier.mvc5 Goto Github PK
View Code? Open in Web Editor NEW↘️ Trivial compile-time Razor HTML Minifier for ASP.NET MVC 5.
License: MIT License
↘️ Trivial compile-time Razor HTML Minifier for ASP.NET MVC 5.
License: MIT License
This minifier seems promising. I was actually looking for something a bit more aggressive, but I understand that's not the goal of this project.
However, I noticed all Razor @helper
functions from my /App_Code
folder are not being minified. Is there any way to fix that?
Hey @tompazourek, thank you for this thing, absolutely love the idea of compile-time transformation.
Though, do you think it's possible to add an ability to remove <!-- HTML comments -->
from the outcome as well? I can work on it if you don't want or don't have time - would appreciate if you then accept my pull request and redeploy the lib in Nuget.
Also it would be great if this thing was somehow configurable so that a user can choose whether they want to strip out comments or not, and maybe they don't want newlines at all so they can be completely removed (or replaced with a single space so that nothing breaks). Do you know if any configuration may be read from web.config at the compile time?
Thanks!
Andrew K.
Take a look at the internal MvcCSharpRazorCodeGenerator
for more info.
Maybe we need to revisit the regexes, or also look at VisitBlock
and other.
we install RazorHtmlMinifier using Install-Package RazorHtmlMinifier.Mvc5
then replace Views/Web.config with
then rebuild application but result not minify please help?
we use VS2015 , MVC5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.