Class | Sass::Source::Map |
In: |
lib/sass/source/map.rb
|
Parent: | Object |
data | [R] |
The mapping data ordered by the location in the target.
@return [Array<Mapping>] |
Adds a new mapping from one source range to another. Multiple invocations of this method should have each `output` range come after all previous ranges.
@param input [Sass::Source::Range]
The source range in the input document.
@param output [Sass::Source::Range]
The source range in the output document.
Shifts all output source ranges forward one or more lines.
@param delta [Integer] The number of lines to shift the ranges forward.
Shifts any output source ranges that lie on the first line forward one or more characters on that line.
@param delta [Integer] The number of characters to shift the ranges
forward.
Returns the standard JSON representation of the source map.
If the `:css_uri` option isn‘t specified, the `:css_path` and `:sourcemap_path` options must both be specified. Any options may also be specified alongside the `:css_uri` option. If `:css_uri` isn‘t specified, it will be inferred from `:css_path` and `:sourcemap_path` using the assumption that the local file system has the same layout as the server.
Regardless of which options are passed to this method, source stylesheets that are imported using a non-default importer will only be linked to in the source map if their importers implement \{Sass::Importers::Base#public_url\}.
@option options :css_uri [String]
The publicly-visible URI of the CSS output file.
@option options :css_path [String]
The local path of the CSS output file.
@option options :sourcemap_path [String]
The (eventual) local path of the sourcemap file.
@option options :type [Symbol]
`:auto` (default), `:file`, or `:inline`.
@return [String] The JSON string. @raise [ArgumentError] If neither `:css_uri` nor `:css_path` and
`:sourcemap_path` are specified.
@comment
rubocop:disable MethodLength