stylus-loader
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -73,3 +73,3 @@ var loaderUtils = require('loader-utils'); | ||
} else if (key === 'include') { | ||
needsArray(value).forEach(styl.include); | ||
needsArray(value).forEach(styl.include.bind(styl)); | ||
} else if (key === 'import') { | ||
@@ -76,0 +76,0 @@ needsArray(value).forEach(function(stylusModule) { |
@@ -43,3 +43,11 @@ var Parser = require('stylus/lib/parser'); | ||
ImportVisitor.prototype.visitSelector = function(sel) { | ||
for (var i = 0; i < sel.block.nodes.length; i++) { | ||
this.visit(sel.block.nodes[i]); | ||
} | ||
return sel; | ||
} | ||
ImportVisitor.prototype.visitBlock = ImportVisitor.prototype.visitRoot; | ||
ImportVisitor.prototype.visitGroup = ImportVisitor.prototype.visitRoot; | ||
@@ -46,0 +54,0 @@ // Returns a list of paths that given source imports. |
{ | ||
"name": "stylus-loader", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Stylus loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -105,2 +105,3 @@ # stylus-loader | ||
* Please see https://github.com/shama/stylus-loader/releases | ||
* 2.1.2 - Fix support for stylus include config (@andrewburgess), Add block-level imports to listimports (@kenaniah) | ||
* 2.1.1 - Support Node 6 (@yyx990803), Test in webpack 1 and 2 (@phyllisstein) | ||
@@ -107,0 +108,0 @@ * 2.1.0 - Add support for stylus's include and set (@michaek) |
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
32189
701
127