sass 0.3.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • --

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     # Sass executable to use
      compass: true                 # Include compass
      line-numbers: true            # Include line numbers in output
      style: compact                # Style of generated CSS
      copy-sources: true            # Copy original .scss/.sass files to output directory

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.

v0.3.2 (2014-09-17)

  • Support Barback 0.15.x.

v0.3.1 (2014-06-24)

  • Use sass.bat as default executable on Windows. (#10) (Thanks to Nicholas Tuck.)

v0.3.0 (2014-05-25)

  • Breaking change: don't copy source .scss/.sass files to build directory by default. Use copy-sources: true to keep the old behavior. (#7)
  • Support imports with directory names. (#8)

v0.2.2 (2014-05-23)

  • Require Barback 0.13.x.
  • Fixed DeclaringTransformer on Barback 0.13.x.

v0.2.1 (2014-05-15)

  • Implemented DeclaringTransformer interface so Barback can optimize the asset graph.
  • Compatibility with Barback 0.13.x.

v0.2.0 (2014-05-15)

  • Exclude URL-imports when parsing imports. (Thanks to Vikraman Choudhury.)

v0.1.1 (2014-04-24)

  • Ignore Compass imports when reading the dependencies of a module. (Thanks to Dan Schultz.)

v0.1.0 (2014-04-19)

  • Support using SassC instead of vanilla Sass.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  sass: "^0.3.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:sass/sass.dart';
        
Version Uploaded Documentation Archive
0.4.2+7 Nov 5, 2016 Go to the documentation of sass 0.4.2+7 Download sass 0.4.2+7 archive
0.4.2+5 Nov 5, 2016 Go to the documentation of sass 0.4.2+5 Download sass 0.4.2+5 archive
0.4.2+4 Oct 20, 2016 Go to the documentation of sass 0.4.2+4 Download sass 0.4.2+4 archive
0.4.2+3 Oct 20, 2016 Go to the documentation of sass 0.4.2+3 Download sass 0.4.2+3 archive
0.4.2+2 Oct 19, 2016 Go to the documentation of sass 0.4.2+2 Download sass 0.4.2+2 archive
0.4.2+1 Oct 19, 2016 Go to the documentation of sass 0.4.2+1 Download sass 0.4.2+1 archive
0.4.2 Nov 3, 2014 Go to the documentation of sass 0.4.2 Download sass 0.4.2 archive
0.4.1 Oct 9, 2014 Go to the documentation of sass 0.4.1 Download sass 0.4.1 archive
0.4.0 Sep 22, 2014 Go to the documentation of sass 0.4.0 Download sass 0.4.0 archive
0.3.2 Sep 17, 2014 Go to the documentation of sass 0.3.2 Download sass 0.3.2 archive

All 38 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.