Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.04 KB

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