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

css-relative-url-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-relative-url-loader - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js

@@ -15,4 +15,4 @@ const path = require('path');

return content.replace(/url\([\'\"]?([^'"]+)[\'\"]?\)/g,
(str, filePath) => `url('${prefix + path.join(relative, filePath)}')`
(str, filePath) => `url('${prefix + path.join(relative, filePath)}')`.replace(/\\/g, '/')
);
};
{
"name": "css-relative-url-loader",
"version": "1.0.3",
"version": "1.0.4",
"description": "Loader for webpack, replace relative paths in css with root",

@@ -5,0 +5,0 @@ "main": "index.js",

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