-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Embed Sourcemaps #591
Comments
Not setting // comma-first style so you can comment out (enable/disable) options easily
var result = require("node-sass").renderSync({
data: "a{b:c}"
, file: "/some/random/path.scss"
, outFile: '/temp/foo.css'
, sourceMap: true
, sourceMapEmbed: true
, sourceMapContents: true
});
console.warn(result);
Define "badly". An example of generated code would suffice. |
OK, this could be clearer in docs imo. To make sourcemaps works,
If I take this code (with many blank lines): $color: red;
.element {
color: $color;
} Sourcemaps always reference |
I agree. PRs are most welcome! 😃
This belongs to libsass, but it is already fixed there sass/libsass#775. In next release of node-sass (beta2 probably), this will be fixed. |
Great ! I will make a PR soon ;) |
This behavior is actually fixed for the upcoming release. Only |
Wiki edits welcome 😉 https://github.com/sass/libsass/wiki |
[WIP] Implements embedding source contents in source maps
- Remove line-breaks in Base64 encoded string - Actually embed the source-map json in data-url - Include original source in sources array
[BUGFIX] Add fix for source-maps (Fix-Up PR sass#591)
I'm testing out the new 2.0.0-beta and try to inline sourcemaps, but it fails. My simple demo:
sourceMap
andsourceMapEmbed
are set totrue
.sourceMap
is set toprocess.cwd()
or any other path for example, but sourcemaps are badly generated. Plus I don't want to specify a path because I usedata
.What am I doing wrong ?
The text was updated successfully, but these errors were encountered: