Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Feature: Provides sourceMapRoot option #813

Merged
merged 1 commit into from
Mar 28, 2015
Merged

Feature: Provides sourceMapRoot option #813

merged 1 commit into from
Mar 28, 2015

Conversation

am11
Copy link
Contributor

@am11 am11 commented Mar 28, 2015

Related discussions: #731 & sass/libsass#908.
//cc @itsnydell and @joliss

According to the source-map v3 docs:

(sourceRoot is) An optional source root, useful for relocating source files on a server or removing repeated values in the “sources” entry. This value is prepended to the individual entries in the “source” field.

Further it goes:

Resolving Sources
If the sources are not absolute URLs after prepending of the “sourceRoot”, the sources are resolved relative to the SourceMap (like resolving script src in a html document).

Therefore, node-sass will pass the value of sourceMapRoot (or source-map-root) to the libsass as is, which will return it back in source map as sourceRoot, without affecting anything else.

See the usage example in written tests.

Issue URL: #776.

am11 added a commit that referenced this pull request Mar 28, 2015
Feature: Provides sourceMapRoot option
@am11 am11 merged commit 9dc4b18 into sass:master Mar 28, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant