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.0 to 1.0.1

3

index.js

@@ -5,2 +5,3 @@ const path = require('path');

module.exports = function (content) {
this.cacheable();
const query = loaderUtils.parseQuery(this.query);

@@ -14,4 +15,4 @@

return content.replace(/url\([\'\"]?([^'"]+)[\'\"]?\)/g,
(str, path) => 'url(\'' + path.join(relative, path) + '\')'
(str, filePath) => `url('${path.join(relative, filePath)}')`
);
};
{
"name": "css-relative-url-loader",
"version": "1.0.0",
"version": "1.0.1",
"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