KO
|
EN
gitlite — search
Search
#python
#javascript
#css
#css3
#html
#linux
#android
#reactjs
#sql
#minecraft
#discord
#github
compass-importer
★ 48
Open GitHub ↗
A node-sass compass importer
Download README (.md)
Explore Similar Repositories
doc
:
some documents
WebRTC-VoiceEngine-Demo
:
This project can be used to conduct audio call. 本程序可以实现语音通话。
as3-arduino-connector
:
Connecting Arduino Prototyping board to Adobe AIR through an AIR Native Extension. Available for Windows and MacOSX.
vim-js-indent
:
JavaScript indentation for VIM
react-performance-tests
:
React.js, jQuery and Angular.js rendering performance tests
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
compass-importer
?
Download (.md)
[](https://travis-ci.org/haithembelhaj/compass-importer) # compass-importer A node-sass importer for compass. This package will download an uptodate [compass-mixin](https://github.com/Igosuki/compass-mixins) and link all declarations of @import 'compass' to the mixins. The Compass will also automagically update the [compass-mixin](https://github.com/Igosuki/compass-mixins) from Github. The result is all the power of [compass](http://compass-style.org/) with the speed of [libsass](http://libsass.org/). ## Install ``` $ npm install --save-dev compass-importer ``` ## Usage You can use this importer in node-sass or any project that depends on node-sass. the only thing you need to do to make this work is add the importer to the options and include the '.compass' folder. ### node-sass ```js var sass = require('node-sass'); var compass = require('compass-importer') sass.render({ data: '@import "compass"; .transition { @include transition(all); }', importer: compass }); ``` ### grunt-sass ```js var compass = require('compass-importer') grunt.initConfig({ sass:{ options: { importer: compass }, ... } }) ``` ### gulp-sass ```js var gulp = require('gulp') var sass = require('gulp-sass') var compass = require('compass-importer') gulp.task('sass', function() { return gulp.src('sass/**/*.scss') .pipe(sass({ importer: compass }).on('error', sass.logError)) .pipe(gulp.dest('./css')); }); ``` ## License MIT