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

css-loader

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-loader - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

12

index.js

@@ -6,2 +6,4 @@ /*

var csso = require("csso");
var SourceNode = require("source-map").SourceNode;
var loaderUtils = require("loader-utils");
module.exports = function(content) {

@@ -37,3 +39,11 @@ this.cacheable && this.cacheable();

result.push(css);
return "module.exports =\n\t" + result.join(" +\n\t") + ";";
var cssRequest = loaderUtils.getRemainingRequest(this);
var node = new SourceNode(1, 0,
cssRequest,
"module.exports =\n\t" + result.join(" +\n\t") + ";");
var stringWithMap = node.toStringWithSourceMap({
file: loaderUtils.getCurrentRequest(this)
});
stringWithMap.map.setSourceContent(cssRequest, content);
this.callback(null, stringWithMap.code, stringWithMap.map.toJSON());
}

@@ -40,0 +50,0 @@

6

package.json
{
"name": "css-loader",
"version": "0.5.2",
"version": "0.6.0",
"author": "Tobias Koppers @sokra",
"description": "css loader module for webpack",
"dependencies": {
"csso": "1.3.x"
"csso": "1.3.x",
"source-map": "0.1.x",
"loader-utils": "0.2.x"
},

@@ -9,0 +11,0 @@ "devDependencies": {

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