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

css-loader

Package Overview
Dependencies
Maintainers
9
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.28.5 to 0.28.6

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="0.28.6"></a>
## [0.28.6](https://github.com/webpack/css-loader/compare/v0.28.5...v0.28.6) (2017-08-30)
### Bug Fixes
* add support for aliases starting with `/` (`options.alias`) ([#597](https://github.com/webpack/css-loader/issues/597)) ([63567f2](https://github.com/webpack/css-loader/commit/63567f2))
<a name="0.28.5"></a>

@@ -7,0 +17,0 @@ ## [0.28.5](https://github.com/webpack/css-loader/compare/v0.28.4...v0.28.5) (2017-08-17)

1

lib/loader.js

@@ -45,2 +45,3 @@ /*

query: query,
resolve: resolve,
minimize: this.minimize,

@@ -47,0 +48,0 @@ loaderContext: this,

10

lib/processCss.js

@@ -86,2 +86,7 @@ /*

function isAlias(url) {
// Handle alias starting by / and root disabled
return url !== options.resolve(url)
}
function processNode(item) {

@@ -102,3 +107,3 @@ switch (item.type) {

case "url":
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && loaderUtils.isUrlRequest(item.url, options.root)) {
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && (isAlias(item.url) || loaderUtils.isUrlRequest(item.url, options.root))) {
// Don't remove quotes around url when contain space

@@ -154,3 +159,4 @@ if (item.url.indexOf(" ") === -1) {

url: query.url !== false,
import: query.import !== false
import: query.import !== false,
resolve: options.resolve
};

@@ -157,0 +163,0 @@

{
"name": "css-loader",
"version": "0.28.5",
"version": "0.28.6",
"author": "Tobias Koppers @sokra",

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

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