Add inline sourcemap support
See original GitHub issueSome 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:
- Created 9 years ago
- Comments:15 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Precisely.
sass
is a command-line application, and as such it should be able to work withstdin
andstdout
as nearly any other command-line application does. Even programs that output binary files (likezip
) do output the result instdout
. Actually… I can’t think of many scripts (apart fromsass
) 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.
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.