Socket
Socket
Sign inDemoInstall

style-loader

Package Overview
Dependencies
0
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.2.0

0

addStyle.web.js

@@ -0,0 +0,0 @@ /*

7

index.js

@@ -9,4 +9,4 @@ /*

this.clearDependencies && this.clearDependencies();
var loaderSign = this.request.indexOf("!");
var rawCss = this.request.substr(loaderSign); // including leading "!"
if(this.loaderType != "loader") throw new Error("style-loader do not work as pre or post loader");
var rawCss = this.currentLoaders.slice(this.loaderIndex+1).join("!")
if(this.web)

@@ -16,2 +16,3 @@ return "require(" + JSON.stringify(path.join(__dirname, "addStyle")) + ")"+

return "";
}
}
module.exports.seperable = true;
{
"name": "style-loader",
"version": "0.1.3",
"version": "0.2.0",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "style loader module for webpack",

@@ -6,3 +6,3 @@ # style loader for webpack

``` javascript
require("style!./file.css");
require("style!raw!./file.css");
// => add rules in file.css to document

@@ -13,4 +13,6 @@ ```

It's recommended to combine it with the [`css`](https://github.com/sokra/webpack-css-loader) loader: `require("style!css!./file.css")`.
## License
MIT (http://www.opensource.org/licenses/mit-license.php)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc