question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Have 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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Shazwazzacommented, May 3, 2017

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 its sources 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.

0reactions
dazinatorcommented, Apr 21, 2017

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found