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.

Add flag to disable inline sourcemap comment

See original GitHub issue

In addition to inline comments of the form: /*# sourceMappingURL={your-file.css.map}*/,

The sourcemap V3 spec also defines the SourceMap HTTP header https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap, which links the location of a file’s accompanying sourcemap.

It would be great to have a compiler flag which disables the inline sourcemap comment, for the case where you wish to generate sourcemaps, but use the HTTP header instead of the inline comment to specify the location of your sourcemaps.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hirosatocommented, Jun 12, 2020

Let me try this. I’ve cherry-picked a commit from https://github.com/less/less.js/issues/3398#issuecomment-501334699 I’ll start checking how tests are written.

1reaction
matthew-deancommented, May 19, 2020

@susnet Changed it to “up-for-grabs”

Read more comments on GitHub >

github_iconTop Results From Across the Web

SourceMapDevToolPlugin - webpack
This plugin enables more fine grained control of source map generation. It is also enabled automatically by certain settings of the devtool configuration ......
Read more >
Webpack-dev-server doesn't generate source maps
I use babel-loader, but can't figure out how to generate or where find source maps for transpiled files. I tried eval-source-map , inline-source...
Read more >
Source Maps - SurviveJS
Inline source maps add the mapping data directly to the generated files. Separate source maps emit the mapping data to separate source map...
Read more >
The build Property - Nuxt
Enables CSS Source Map support ... already activated through nuxt.config.js or otherwise, devtools enable regardless of the flag. ... Add webpack plugins.
Read more >
source-map-support - npm
If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be respected (e.g. if a file mentions the ...
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