node-sass-import
Advanced tools
Comparing version
@@ -11,9 +11,7 @@ 'use strict'; | ||
extensions: [ '.scss', '.css' ] | ||
}, function (err, res) { | ||
if (err) { | ||
console.log(err); | ||
return; | ||
} | ||
console.log(res); | ||
done({ file: res }); | ||
}, function (err, file) { | ||
if (err) throw err; | ||
console.log(file); | ||
done({ file: file }); | ||
}); | ||
@@ -20,0 +18,0 @@ }; |
{ | ||
"name": "node-sass-import", | ||
"version": "0.0.3", | ||
"version": "0.0.6", | ||
"description": "Allows usage of @include (of .scss) akin to require (of .js) in node.js", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/anarh/node-sass-import/issues", |
@@ -34,2 +34,14 @@ # node-sass-import | ||
## Example | ||
@import in sass can now be used just like a require statement. The example below imports the main scss file from the newsapps-syles npm module. At build time, all @import statements will be resolved locally or like npm modules. Also includes support for partial (e.g. _partial.scss). | ||
```scss | ||
@import "newsapps-styles"; | ||
.some-style { | ||
color: $primary-blue; | ||
} | ||
``` | ||
## API | ||
@@ -36,0 +48,0 @@ |
5630
6.57%62
24%56
-5.08%