node-sass
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -67,2 +67,4 @@ var sass = require('../sass') | ||
var root = options.root || null; | ||
// Default compile callback | ||
@@ -80,4 +82,12 @@ options.compile = options.compile || function(){ | ||
, sassPath = join(src, path.replace('.css', '.scss')) | ||
, sassDir = dirname(sassPath) | ||
, sassDir = dirname(sassPath); | ||
if (root) { | ||
cssPath = join(root, dest, path.replace(dest, '')); | ||
sassPath = join(root, src, path | ||
.replace(dest, '') | ||
.replace('.css', '.scss')); | ||
sassDir = dirname(sassPath); | ||
} | ||
if (debug) { | ||
@@ -84,0 +94,0 @@ log('source', sassPath); |
@@ -5,3 +5,3 @@ { | ||
"description": "wrapper around libsass", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "https://github.com/andrew/node-sass", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ ##node-sass | ||
Node-sass is a library that provides binding for Node.js to libsass, the C version of the popular stylesheet preprocessor, Sass. | ||
Node-sass is a library that provides binding for Node.js to [libsass](https://github.com/hcatlin/libsass), the C version of the popular stylesheet preprocessor, Sass. | ||
@@ -99,2 +99,6 @@ It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware. | ||
## Grunt extension | ||
[@sindresorhus](https://github.com/sindresorhus/) has created a set of grunt tasks based on node-sass: <https://github.com/sindresorhus/grunt-sass> | ||
## Example App | ||
@@ -101,0 +105,0 @@ |
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
406
150
6021612