Skip to content

0.1.0

Latest
Compare
Choose a tag to compare
@jelbourn jelbourn released this 05 Jun 18:19

This release:

  • Switches the default compiler from libsass (via sassc) to dart-sass (via the JavaScript-compiled distribution on npm). The Dart compiler is now the canonical implementation and is actively maintained by the Sass owners.
  • Updates the rule APIs to match the API of Google's internal Sass rules so that these rules can then replace the existing Sass rules inside Google. This is largely adding additional attributes to sass_binary, excepting the breaking changes listed below.

New features

Sass binary now supports three new attributes: include_paths, output_dir, and output_name. See the README for more information on these attributes.

Breaking changes

  • Additional setup in a project's WORKSPACE file is now required; see the README for more information.
  • The default output filename for sass_binary is now based on the src filename instead of the name of the rule. For example, if your input src file is material-button.scss, the default output filename will be material-button.css. The name can be customized via the output_name attribute.
  • While the Dart compiler should match the libsass compiler's behavior, it is possible some minor differences in CSS output may occur.