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.

Remove sourcemaps from distribution files.

See original GitHub issue

What kind of issue is this? (put ‘x’ between the square brackets)

Hi, so I use bower, and bower installer to install dependencies, when requesting distribution files I don’t require the sourcemap, however because the sourcemap is not included in the bower file as a main file it doesn’t get installed by bower installer causing my grunt tasks to fail due to the missing sourcemap.

Can you either exclude sourcemaps from distribution files, or include the sourcemap in bower.json as a main file? Preferably the former as I have no requirement for source maps in production code.

Thanks! 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
dahliacreativecommented, Jun 13, 2016

It saddens me that many developers feel the same way you do. I wish more users felt that they could be part of a project, that they could contribute to it, and that as users, they were part of the project.

@marcandre This isn’t really about being part of the project, the is purely from the point of view of using the plugin in my projects. When I use it in my projects I don’t need the source map.

If I found a bug when using the plugin then I would debug it and open up an issue or if I had time a PR.

This is purely about the fact that I use parsley on pretty much every project and when I put my project live I don’t need sourcemaps!

0reactions
marcandrecommented, Jul 2, 2016

Cool, glad to hear this. So should we close this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove unnecessary webpack map files from the package
To do this we need to look at which browsers support the sourcemaps, (and anything else using them, need to check if tracing...
Read more >
Disable source maps in Chrome DevTools - Stack Overflow
Open Developer Tools, go to "Settings" for Developer Tools, then uncheck Enable JavaScript Sourcemaps under the "Sources" settings.
Read more >
Should I Use Source Maps in Production? | CSS-Tricks
A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to the original authored version....
Read more >
How do I disable source maps in Safari? - Super User
A workaround for locally distributed vendor js files would be to edit them and modify the reference to the source map.
Read more >
Troubleshooting Source Maps for JavaScript
In case the source map files do not contain your original source code ... Verify artifact distribution value matches value configured in your...
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