/dart_libsass

A Dart VM Native Extension for libsass

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Deprecated

Sass is now written in Dart! So this project is no longer needed. However, it can still be useful as an example of how to use C extensions in Dart.

libsass for Dart

libsass+dart

A Dart VM Native Extension for libsass.

This package provides Dart language bindings for the libsass library, the C version of the popular stylesheet preprocessor, Sass.

Build Instructions

Because this library contains a Dart VM Native Extension, you will need to compile the extension before using the library. Currently, the build script only supports Linux and Mac (untested):

git clone https://github.com/oddrationale/dart_libsass.git
cd dart_libsass
pub get
dart tool/build.dart

This script will pull the libsass submodule, compile libsass, and compile the extenstion. Support for Windows is coming soon!

Command Line

This package also provides a sassc compatible executable:

dart bin/sassd.dart input.scss output.css