Coder Social home page Coder Social logo

Comments (6)

Taritsyn avatar Taritsyn commented on May 20, 2024

Hello, Mads!

This issue has been discussed many times (for example, โ€œdrop minification in case of errorsโ€). Just nobody reads the documentation.

from webmarkupmin.

madskristensen avatar madskristensen commented on May 20, 2024

I did read it, but I don't know how to use the NullLogger. Any code samples?

from webmarkupmin.

madskristensen avatar madskristensen commented on May 20, 2024

The NullLogger fixes the issue with the original repro step. However, add the following to any HTML reponse and it breaks again:

<?xml:namespace prefix />

from webmarkupmin.

madskristensen avatar madskristensen commented on May 20, 2024

Also, another issue with the NullLogger is that it disables logging for everything in the application and not just WebMarkupMin. How about adding a Boolean property to the service options called something like options.ContinueOnError = true

from webmarkupmin.

madskristensen avatar madskristensen commented on May 20, 2024

Never mind. I got confused by the names ILogger and NullLogger which both exist in a MS nuget package

from webmarkupmin.

Taritsyn avatar Taritsyn commented on May 20, 2024

Hello, Mads!

<?xml:namespace prefix />

This error is handled correctly.

I got confused by the names ILogger and NullLogger which both exist in a MS nuget package

Unfortunately, I began to use such type names still in 2013.

Expected
When an error occurs, simple just about the minification and serve the unminified. That way the page isn't broken and the user can see the content

In next release I will make NullLogger the logger by default.

from webmarkupmin.

Related Issues (20)

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.