postcss-url
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -0,1 +1,6 @@ | ||
# 5.0.1 - 2015-10-04 | ||
- Fixed: windows compatibility | ||
([#52](https://github.com/postcss/postcss-url/pull/52)) | ||
# 5.0.0 - 2015-09-07 | ||
@@ -2,0 +7,0 @@ |
13
index.js
@@ -299,4 +299,4 @@ /** | ||
// e.g., url('glyphicons-halflings-regular.eot?#iefix') | ||
var fileLink = url.parse(filePathUrl, true) | ||
var filePath = fileLink.pathname | ||
var fileLink = url.parse(urlMeta.value) | ||
var filePath = path.resolve(dirname, fileLink.pathname) | ||
var name = path.basename(filePath) | ||
@@ -334,3 +334,4 @@ var useHash = options.useHash || false | ||
relativeAssetsPath, | ||
dirname.replace(new RegExp(from + "[\/]\?"), ""), | ||
dirname.replace(new RegExp(from.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") | ||
+ "[\/]\?"), ""), | ||
path.dirname(urlMeta.value) | ||
@@ -354,3 +355,7 @@ ) | ||
return createUrl(urlMeta, path.join(relativeAssetsPath, nameUrl)) | ||
var assetPath = path.join(relativeAssetsPath, nameUrl) | ||
if (path.sep === "\\") { | ||
assetPath = assetPath.replace(/\\/g, "\/") | ||
} | ||
return createUrl(urlMeta, assetPath) | ||
} |
{ | ||
"name": "postcss-url", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "PostCSS plugin to rebase or inline on url().", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,3 +0,6 @@ | ||
# postcss-url [![Build Status](https://travis-ci.org/postcss/postcss-url.png)](https://travis-ci.org/postcss/postcss-url) | ||
# postcss-url | ||
[![Travis Build Status](https://img.shields.io/travis/postcss/postcss-url/master.svg?label=unix%20build)](https://travis-ci.org/postcss/postcss-url) | ||
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/MoOx/postcss-url/master.svg?label=windows%20build)](https://ci.appveyor.com/project/MoOx/postcss-url) | ||
> [PostCSS](https://github.com/postcss/postcss) plugin to rebase, inline or copy on url(). | ||
@@ -4,0 +7,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17962
321
116