GithubHelp home page GithubHelp logo

tompazourek / razorhtmlminifier.mvc5 Goto Github PK

View Code? Open in Web Editor NEW
35.0 7.0 6.0 92 KB

↘️ Trivial compile-time Razor HTML Minifier for ASP.NET MVC 5.

License: MIT License

C# 52.15% HTML 47.03% ASP.NET 0.82%
asp-net asp-net-mvc asp-net-mvc5 c-sharp cshtml html html-minification html-minifier minification minifier

razorhtmlminifier.mvc5's Introduction

Dynamically generated stats for my user

razorhtmlminifier.mvc5's People

Contributors

dependabot[bot] avatar rudeysh avatar tompazourek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

razorhtmlminifier.mvc5's Issues

Is it possible to support Razor @helpers in the /App_Code folder?

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?

Strip out HTML comments

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.

RazorHtmlMinifier not minify my project views

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.