stylus-loader
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -46,2 +46,6 @@ var loaderUtils = require('loader-utils'); | ||
styl.set(key, value); | ||
if (key === 'resolve url' && value) { | ||
styl.define('url', stylus.resolver()); | ||
} | ||
} | ||
@@ -48,0 +52,0 @@ }); |
{ | ||
"name": "stylus-loader", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Stylus loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,3 +36,3 @@ # stylus-loader | ||
and then `require('./file.style');` will compile and add the CSS to your page. | ||
and then `require('./file.styl');` will compile and add the CSS to your page. | ||
@@ -47,3 +47,4 @@ ## Install | ||
## Release History | ||
* 0.2.0 - Now tracks dependencies for @import statements making cacheable work | ||
* 0.3.0 - Define url resolver() when "resolve url" option is true (@mzgoddard). | ||
* 0.2.0 - Now tracks dependencies for @import statements making cacheable work. Update stylus dep. | ||
* 0.1.0 - Initial release | ||
@@ -53,2 +54,2 @@ | ||
Copyright (c) 2013 Kyle Robinson Young | ||
Licensed under the MIT license. | ||
Licensed under the MIT license. |
@@ -30,2 +30,9 @@ var should = require("should"); | ||
}); | ||
it("with option, should resolve urls relatively", function() { | ||
var css = require( | ||
"!raw-loader!../?{\"resolve url\":true}!./fixtures/shallow.styl" | ||
); | ||
(typeof css).should.be.eql("string"); | ||
css.should.match(/\url\(\"?img.png\"?\)/); | ||
}); | ||
}); |
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
7648
18
123
53