NUglify
See original GitHub issueHave you seen https://github.com/xoofx/NUglify ? It has some interesting stuff in there. I only stumbled accross it because mads is using it as a dependency in the bundler that is included by default in the latest aspnet core website project templates: https://github.com/madskristensen/BundlerMinifier
I think I’m going to give it a whirl in NetPack
to see how well the source maps work.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
NUglify is a HTML, JavaScript and CSS minification Library ...
NUglify provides minify and compression methods for CSS, JavaScript and HTML files. ... While dotnet Core is now relying on the node.js ecosystem...
Read more >NUglify 1.20.7
Version Downloads Last updated
1.20.7 259,278 3 months ago
1.20.6 141,316 5 months ago
1.20.5 333,342 7 months ago
Read more >NUglify
"An extension to ImageSharp that allows the drawing of images, paths, and text." Library or NuGet package built with .net standard and c#...
Read more >Build-time Minification of Web Assets in ASP.NET
This task uses NUglify (the same library the Bundler & Minifier extension uses under the hood) to create minified versions of all of...
Read more >Smidge + Nuglify bundling, minification and source maps
Nuglify and source maps. Nuglify if an ASP.NET Core port of the old AjaxMin library and this works very nicely with Smidge too....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The latest commits now have source maps working with Nuglify both default (external file source maps) and inline (if you choose to configure it that way)!
The
V3SourceMap
class in Nuglify (well taken from AjaxMin) is odd but it actually lets you incrementally apply a single instance to multiple files without having to tell it up-front what all of the files are and it’s smart enough to iteratively update itssources
list.I’ve made the default options to use normal (non-inline) source maps, since inline ones just make files huge and it all works very well! If you pull the latest changes and F5, the test website will start and one of the bundles is configured to use Nuglify:
libs-js
which includes jquery + knockout. This will have a source map applied to it and you can inspect it in Chrome that it’s all working.Smidge 2.0 is so close now.
Tests for that process if curious are here: https://github.com/dazinator/NetPack/blob/develop/src/NetPack.JsCombine.Tests/CombinePipeTests.cs
I’ll checkout the latest smidge code and give it a whirl 😃