sass 0.2.1 copy "sass: ^0.2.1" to clipboard
sass: ^0.2.1 copied to clipboard

outdatedDart 1 only

Sass-transformer for pub-serve and pub-build.

Build Status

Sass integration for pub #

Sass-transformer for pub-serve and pub-build.

Usage #

Simply add the following lines to your pubspec.yaml:

:::yaml
dependencies:
  sass: any
transformers:
  - sass

After adding the transformer your .sass and .scss files will be automatically transformed to corresponding .css files.

You need to have Sass installed and available on the path.

Configuration #

You can also pass options to Sass if necessary:

:::yaml
transformers:
  - sass:
      executable: /path/to/sass
      compass: true
      line-numbers: true
      style: compact

Using SassC #

You can use SassC instead of normal Sass by specifying executable as 'sassc' (or any path ending with 'sassc'):

:::yaml
transformers:
  - sass:
      executable: sassc  # or /path/to/sassc

SassC only supports .scss-files and does not support Compass.

Current limitations #

  • UTF8-encoding is assumed for all input files.
17
likes
0
pub points
92%
popularity

Publisher

verified publishersass-lang.com

Sass-transformer for pub-serve and pub-build.

Homepage

License

unknown (LICENSE)

Dependencies

barback, utf

More

Packages that depend on sass