Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylus-loader

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus-loader - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

test/fixtures/deep/deep-urls.styl

4

index.js

@@ -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 @@ });

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc