ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
756 stars 113 forks source link

Question: Generation of source map files #179

Open andycook71 opened 3 years ago

andycook71 commented 3 years ago

Is there a way for WebOptimizer to allow for serving of source maps, (*.js.map)? Currently source source maps are resulting in a 404 for me.

I see that that CodeBundlingSettings has a reference to NUglify's SymbolsMap, but can't find any example of using it.

benjamin-stern commented 2 years ago

Any updates on this?

I think the bigger issue, is that there is no way to bundle it with the library so that it would reference it from memory or bundle the map along with the generated output js.

https://github.com/trullock/NUglify/issues/11

rferreiraperez commented 2 years ago

Is there a plan to add this functionality?

jwbats commented 1 year ago

I just ran into this, as well.

No maps support for inlined scripts.

xilonoide commented 1 year ago

Ugh! no updates to this.

QuinnDamerell commented 1 year ago

+1, this would be really useful!

MrCodeB2 commented 1 year ago

+1

b9chris commented 3 months ago

Is there still interest in this? I'm considering adding this feature in a Fork, and if it would be welcome, adding it to the core project however you guys prefer to do things. Don't know that process.

jwbats commented 3 months ago

@b9chris, I would still be interested.

xilonoide commented 3 months ago

Is there still interest in this? I'm considering adding this feature in a Fork, and if it would be welcome, adding it to the core project however you guys prefer to do things. Don't know that process.

yes! I'm!

b9chris commented 3 months ago

It's working on my Fork.

Because I'm also building Nuglify from source, it seems to be failing the AppVeyor test (AppVeyor can't find Nuglfy so it fails to build). I'll see if I can rebuild the Pull Request with Nuglify from Nuget...

https://github.com/ligershark/WebOptimizer/pull/310

QuinnDamerell commented 3 months ago

This is amazing! My main use case for this is uploading the source maps to New Relic or Sentry so the services can parse and categorize the errors better. Thanks for your work!

b9chris commented 3 months ago

This should be ready for merge, here's the Pull Request:

https://github.com/ligershark/WebOptimizer/pull/311

b9chris commented 1 month ago

(This feature has been merged and this Issue should probably be closed as resolved)