Dart Sass 1.3.0
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-urlsoption to control whether the source file URLs in the generated source map are relative or absolute. -
Add an
--embed-sourcesoption to embed the contents of all source files in the generated source map. -
Add an
--embed-source-mapoption to embed the generated source map as adata:URL in the generated CSS.
Dart API
- Add a
sourceMapparameter tocompile(),compileString(),compileAsync(), andcompileStringAsync(). This takes a callback that's called with aSingleMappingthat contains the source map information for the compiled CSS file.
Node API
-
Added support for the
sourceMap,omitSourceMapUrl,outFile,sourceMapContents,sourceMapEmbed, andsourceMapRootoptions 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.