Releases: sass/dart-sass
Dart Sass 1.6.2
To install Dart Sass 1.6.2, 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
- Fix a bug where the source map comment in the generated CSS could refer to the source map file using an incorrect URL.
See the full changelog for changes in earlier releases.
Dart Sass 1.6.1
To install Dart Sass 1.6.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- No user-visible changes.
See the full changelog for changes in earlier releases.
Dart Sass 1.6.0
To install Dart Sass 1.6.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Produce better errors when expected tokens are missing before a closing brace.
-
Avoid crashing when compiling a non-partial stylesheet that exists on the filesystem next to a partial with the same name.
Command-Line Interface
-
Add support for the
--watch
flag, which watches for changes in Sass files on the filesystem and ensures that the compiled CSS is up-to-date. -
When using
--update
, surface errors when an import doesn't exist even if the file containing the import hasn't been modified. -
When compilation fails, delete the output file rather than leaving an outdated version.
See the full changelog for changes in earlier releases.
Dart Sass 1.5.1
To install Dart Sass 1.5.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Fix a bug where an absolute Windows path would be considered an
input:output
pair. -
Forbid custom properties that have no values, like
--foo:;
, since they're forbidden by the CSS spec.
See the full changelog for changes in earlier releases.
Dart Sass 1.5.0
To install Dart Sass 1.5.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Fix a bug where an importer would be passed an incorrectly-resolved URL when handling a relative import.
-
Throw an error when an import is ambiguous due to a partial and a non-partial with the same name, or multiple files with different extensions. This matches the standard Sass behavior.
Command-Line Interface
- Add an
--interactive
flag that supports interactively running Sass expressions (thanks to Jen Thakar!).
See the full changelog for changes in earlier releases.
Dart Sass 1.4.0
To install Dart Sass 1.4.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Improve the error message for invalid semicolons in the indented syntax.
-
Properly disallow semicolons after declarations in the indented syntax.
Command-Line Interface
-
Add support for compiling multiple files at once by writing
sass input.scss:output.css
. Note that unlike Ruby Sass, this always compiles files by default regardless of when they were modified.This syntax also supports compiling entire directories at once. For example,
sass templates/stylesheets:public/css
compiles all non-partial Sass files intemplates/stylesheets
to CSS files inpublic/css
. -
Add an
--update
flag that tells Sass to compile only stylesheets that have been (transitively) modified since the CSS file was generated.
Dart API
- Add
Importer.modificationTime()
andAsyncImporter.modificationTime()
which report the last time a stylesheet was modified.
Node API
- Generate source maps when the
sourceMaps
option is set to a string and theoutFile
option is not set.
See the full changelog for changes in earlier releases.
Dart Sass 1.3.2
To install Dart Sass 1.3.2, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Add support for
@elseif
as an alias of@else if
. This is not an intentional feature, so using it will cause a deprecation warning. It will be removed at some point in the future.
See the full changelog for changes in earlier releases.
Dart Sass 1.3.1
To install Dart Sass 1.3.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Node API
- Fix loading imports relative to stylesheets that were themselves imported though relative include paths.
See the full changelog for changes in earlier releases.
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-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.
Dart Sass 1.2.1
To install Dart Sass 1.2.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Always emit units in compressed mode for
0
dimensions other than lengths and angles.
See the full changelog for changes in earlier releases.