To install Dart Sass 1.3.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Command-Line Interface
-
Generate source map files by default when writing to disk. This can be disabled by passing
--no-source-map
. -
Add a
--source-map-urls
option to control whether the source file URLs in the generated source map are relative or absolute. -
Add an
--embed-sources
option to embed the contents of all source files in the generated source map. -
Add an
--embed-source-map
option to embed the generated source map as adata:
URL in the generated CSS.
Dart API
- Add a
sourceMap
parameter tocompile()
,compileString()
,compileAsync()
, andcompileStringAsync()
. This takes a callback that's called with aSingleMapping
that contains the source map information for the compiled CSS file.
Node API
-
Added support for the
sourceMap
,omitSourceMapUrl
,outFile
,sourceMapContents
,sourceMapEmbed
, andsourceMapRoot
options torender()
andrenderSync()
. -
Fix a bug where passing a relative path to
render()
orrenderSync()
would cause relative imports to break. -
Fix a crash when printing warnings in stylesheets compiled using
render()
orrenderSync()
. -
Fix a bug where format errors were reported badly on Windows.
See the full changelog for changes in earlier releases.