Skip to content

Dart Sass 1.4.0

Compare
Choose a tag to compare
@sassbot sassbot released this 28 May 22:02
· 1665 commits to main since this release
fba35fe

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 in templates/stylesheets to CSS files in public/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() and AsyncImporter.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 the outFile option is not set.

See the full changelog for changes in earlier releases.