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 inline sourcemap support

See original GitHub issue

Some users want to use sourcemaps in development without creating any additional files, or even entirely over stdin/stdout. We should add an additional sourcemap type (in-css? base64? super-inline?) that does this.

Edited by @nex3 to retarget the issue. Previous report below:

I can’t find any possibility to get the sourcemap without having to write both, the compiled .css and the sourcemap file to disk.

I am looking for something like:

$ sass --sourcemap-only style.scss

which would output the sourcemap instead of the compiled .css.

This is relevant when writing transformers in certain frameworks since they only work in memory.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
enyocommented, Oct 31, 2014

Precisely. sass is a command-line application, and as such it should be able to work with stdin and stdout as nearly any other command-line application does. Even programs that output binary files (like zip) do output the result in stdout. Actually… I can’t think of many scripts (apart from sass) that aren’t able to do that.

EDIT: Sorry. That may have come off a bit presumptuous. If you don’t want to implement my request, it’s obviously your choice and I’ll find a workaround. It being a command-line application is the reason I’d love that feature though. It will allow me to use it as I’d love using it, instead of having to implement a hack for it.

0reactions
nex3commented, Apr 5, 2018

I’m moving this issue to the new Ruby Sass repository because it’s specific to Ruby Sass’s implementation. Once it’s there, I’m going to close it as “on ice” because Ruby Sass is deprecated and no additional features are planned for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

source-map-support
This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to...
Read more >
Add inline sourcemap support · Issue #25 · sass/ruby-sass
I'm closing this issue as "on ice" because Ruby Sass is deprecated and no additional features are planned for it. All ...
Read more >
javascript - Why inline source maps?
So in this case, adding inline source map to generated bundles is the easiest way to help debugging without bringing extra files.
Read more >
Source Maps
Source map types supported by webpack can be split into two categories: Inline source maps add the mapping data directly to the generated...
Read more >
Source Maps | webpack surviveJS - GitHub Pages
# Source Map Types Supported by Webpack · Inline source maps add the mapping data directly to the generated files. · Separate source...
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