Releases: bazelbuild/rules_sass
Releases · bazelbuild/rules_sass
0.1.0
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 thesrc
filename instead of the name of the rule. For example, if your inputsrc
file ismaterial-button.scss
, the default output filename will bematerial-button.css
. The name can be customized via theoutput_name
attribute. - While the Dart compiler should match the libsass compiler's behavior, it is possible some minor differences in CSS output may occur.
0.0.3
0.0.2
Major changes:
- Fixes build by providing cfg parameter for executable labels
- Use Bazel mirror to download external dependencies
- Update setup instructions