sass-loader
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,2 +7,4 @@ var utils = require('loader-utils'); | ||
module.exports = function(content) { | ||
var root; | ||
this.cacheable && this.cacheable(); | ||
@@ -18,2 +20,6 @@ | ||
opt.includePaths.push(path.dirname(this.resourcePath)); | ||
if (this.options.resolve && this.options.resolve.root) { | ||
root = [].concat(this.options.resolve.root); | ||
opt.includePaths = opt.includePaths.concat(root); | ||
} | ||
@@ -20,0 +26,0 @@ // output compressed by default |
{ | ||
"name": "sass-loader", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "SASS loader for Webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,2 +17,4 @@ # sass loader for webpack | ||
You can even go next level, by using it with the [`css-loader`](https://github.com/webpack/css-loader) to import linked files. | ||
### webpack config | ||
@@ -33,3 +35,3 @@ | ||
Then you only need to write: `require("./file.scss")` | ||
Then you only need to write: `require("./file.scss")`. See [`node-sass`](https://github.com/andrew/node-sass) for the available options. | ||
@@ -36,0 +38,0 @@ ## Install |
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
2267
25
43