node-sass
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -5,7 +5,12 @@ { | ||
"description": "wrapper around libsass", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"homepage": "https://github.com/andrew/node-sass", | ||
"keywords": ["sass", "css", "libsass"], | ||
"bugs" : | ||
{ "url" : "https://github.com/andrew/node-sass/issues" }, | ||
"keywords": [ | ||
"sass", | ||
"css", | ||
"libsass" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/andrew/node-sass/issues" | ||
}, | ||
"licenses": [ | ||
@@ -27,3 +32,3 @@ { | ||
"bin": { | ||
"node-sass" : "bin/node-sass" | ||
"node-sass": "bin/node-sass" | ||
}, | ||
@@ -37,3 +42,3 @@ "gypfile": true, | ||
"colors": "0.6.0-1", | ||
"optimist": "0.3.x" | ||
"optimist": "0.4.x" | ||
}, | ||
@@ -40,0 +45,0 @@ "devDependencies": { |
@@ -21,13 +21,17 @@ ##node-sass | ||
// OR | ||
var css = sass.renderSync(scss_content); | ||
var css = sass.renderSync(scss_content [, options]); | ||
``` | ||
Especially, the options argument is optional. It support two attributes: `includePaths` and `outputStyle`, both of which are optional. | ||
### Options | ||
`includePaths` is an `Array`, you can add a sass import path. | ||
The options argument is optional, though it's use is recommended. It support two attributes: `includePaths` and `outputStyle`. | ||
`outputStyle` is a `String`, its value should be one of `'nested', 'expanded', 'compact', 'compressed'`. | ||
#### includePaths | ||
`includePaths` is an `Array` of path `String`s to look for any `@import`ed files. It is recommended that you use this option if you have **any** `@import` directives, as otherwise libsass may not find your depended-on files. | ||
#### outputStyle | ||
`outputStyle` is a `String` to determine how the final CSS should be rendered. Its value should be one of `'nested', 'expanded', 'compact', 'compressed'`. | ||
[Important: currently the argument `outputStyle` has some problem which may cause the output css becomes nothing because of the libsass, so you should not use it now!] | ||
Here is an example: | ||
### Examples | ||
@@ -40,3 +44,3 @@ ```javascript | ||
// OR | ||
console.log(sass.renderSync('body{background:blue; a{color:black;}}')); | ||
console.log(sass.renderSync('body{background:blue; a{color:black;}}')/*, { includePaths: [ 'lib/', 'mod/' ], outputStyle: 'compressed' }*/); | ||
``` | ||
@@ -80,7 +84,9 @@ | ||
## TODO | ||
## Contributors | ||
Special thanks to the following people for submitting patches: | ||
* better error handling | ||
* file context | ||
* folder context | ||
Dean Mao | ||
Brett Wilkins | ||
litek | ||
gonghao | ||
@@ -87,0 +93,0 @@ ### Note on Patches/Pull Requests |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5951308
101
+ Addedoptimist@0.4.0(transitive)
- Removedoptimist@0.3.7(transitive)
Updatedoptimist@0.4.x