stylus-loader
Advanced tools
Comparing version 2.0.1 to 2.1.0
10
index.js
@@ -28,3 +28,5 @@ var loaderUtils = require('loader-utils'); | ||
options.import = options.import || stylusOptions.import || []; | ||
options.define = options.define || stylusOptions.define || []; | ||
options.include = options.include || stylusOptions.include || []; | ||
options.set = options.set || stylusOptions.set || {}; | ||
options.define = options.define || stylusOptions.define || {}; | ||
@@ -62,2 +64,6 @@ if (options.sourceMap != null) { | ||
}); | ||
} else if (key === 'set') { | ||
for (var name in value) { | ||
styl.set(name, value[name]); | ||
} | ||
} else if (key === 'define') { | ||
@@ -67,2 +73,4 @@ for (var defineName in value) { | ||
} | ||
} else if (key === 'include') { | ||
needsArray(value).forEach(styl.include); | ||
} else if (key === 'import') { | ||
@@ -69,0 +77,0 @@ needsArray(value).forEach(function(stylusModule) { |
{ | ||
"name": "stylus-loader", | ||
"version": "2.0.1", | ||
"version": "2.1.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.1.0 - Add support for stylus's include and set (@michaek) | ||
* 2.0.1 - Add peer dependency on stylus (@jchitel), fix PathCache for webpack 2 (@Unhelpful) | ||
@@ -107,0 +108,0 @@ * 2.0.0 - Remove dependency on stylus (@kossnocorps) |
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
31708
693
125