trullock / NUglify

NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)
Other
396 stars 79 forks source link

Add "application/json" to the list of processable javascript type blocks #303

Closed AndyMcKenna closed 2 years ago

AndyMcKenna commented 2 years ago

Using version 1.17.10

Description Script blocks with type application/json are not getting minified to a single line. If I change the type to application/ld+json it all works.

To Reproduce Input contains <script id=priceStakDataModel type=application/json> {"selectedTab":"buy"} </script>

Minified output or stack trace minifiedoutput

Excepted output code <script id=priceStakDataModel type=application/json>{"selectedTab":"buy"}</script>

I'm planning to submit a PR for this as it's an extension of #66

trullock commented 2 years ago

Fixed in 1.18.0