stylus-loader
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -117,3 +117,3 @@ var loaderUtils = require('loader-utils'); | ||
// Use plugins here so that resolve related side effects can be used while we resolve imports. | ||
use.forEach(styl.use, styl); | ||
(Array.isArray(use) ? use : [use]).forEach(styl.use, styl); | ||
@@ -120,0 +120,0 @@ when |
@@ -37,3 +37,3 @@ var Parser = require('stylus/lib/parser'); | ||
ImportVisitor.prototype.visitCall = function(fn) { | ||
if (fn.name === 'use') { | ||
if (fn.name === 'use' || fn.name === 'json') { | ||
this.importPaths.push(fn.args.first.string); | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "stylus-loader", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"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.2.0 - Let stylus use option be just a function (@yuffiy), Track json calls as imports like use calls (@gnarf) | ||
* 2.1.2 - Fix support for stylus include config (@andrewburgess), Add block-level imports to listimports (@kenaniah) | ||
@@ -107,0 +108,0 @@ * 2.1.1 - Support Node 6 (@yyx990803), Test in webpack 1 and 2 (@phyllisstein) |
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
32356
128