Comparing version 0.18.1 to 0.18.2
{ | ||
"name": "rework", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
"keywords": ["css", "manipulation", "preprocess", "transform"], | ||
"dependencies": { | ||
"visionmedia/css": "1.4.1", | ||
"visionmedia/css": "1.4.3", | ||
"visionmedia/debug": "*", | ||
@@ -12,3 +12,3 @@ "visionmedia/rework-visit": "1.0.0", | ||
"component/path": "1.0.0", | ||
"jonathanong/rework-inherit": "0.1.5", | ||
"reworkcss/rework-inherit": "0.2.1", | ||
"jankuca/hsb2rgb": "1.0.2" | ||
@@ -15,0 +15,0 @@ }, |
0.18.2 / 2013-10-16 | ||
================== | ||
* update css dep | ||
* bump rework-inherit | ||
0.18.1 / 2013-09-03 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "rework", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "CSS manipulations built on CSSOM", | ||
@@ -12,3 +12,3 @@ "keywords": ["css", "manipulation", "preprocess", "transform"], | ||
"dependencies": { | ||
"css": "1.4.1", | ||
"css": "1.4.3", | ||
"commander": "1.0.4", | ||
@@ -19,3 +19,3 @@ "color-parser": "0.1.0", | ||
"debug": "*", | ||
"rework-inherit": "0.1.5", | ||
"rework-inherit": "0.2.1", | ||
"rework-visit": "1.0.0" | ||
@@ -22,0 +22,0 @@ }, |
@@ -23,3 +23,3 @@ # rework | ||
- [rework mixins](https://github.com/visionmedia/rework-mixins) | ||
- [significant whitespace](https://github.com/visionmedia/css-whitespace) | ||
- [significant whitespace](https://github.com/visionmedia/css-whitespace) - nested and indented syntax like Stylus and SASS | ||
- third-party [plugins](https://github.com/visionmedia/rework/wiki/Plugins) | ||
@@ -65,3 +65,2 @@ | ||
- [prefixSelectors](#prefixselectorsstring) — add prefixes to selectors | ||
- [url](#urlcallback) — rewrite `url()`s with a callback function | ||
- [keyframes](#keyframesvendors) — add __@keyframe__ vendor prefixing | ||
@@ -72,2 +71,3 @@ - [colors](#colors) — add colour helpers like `rgba(#fc0, .5)` | ||
- [references](#references) — add property references support `height: @width` etc | ||
- [url](#urlfn) - rewrite `url()`s with a given function | ||
- third-party [plugins](https://github.com/visionmedia/rework/wiki/Plugins) | ||
@@ -594,2 +594,28 @@ | ||
### .url(fn) | ||
Map `url()` calls. Replace all `url()`s using a given function. | ||
```js | ||
var css = rework(read(css)) | ||
.use(rework.url(function(url){ | ||
return 'http://example.com' + url; | ||
})) | ||
.toString() | ||
``` | ||
```css | ||
body { | ||
background: url(/images/bg.png); | ||
} | ||
``` | ||
yields: | ||
```css | ||
body { | ||
background: url(http://example.com/images/bg.png); | ||
} | ||
``` | ||
## Example | ||
@@ -596,0 +622,0 @@ |
43172
782
+ Addedcss@1.4.3(transitive)
+ Addedcss-parse@1.6.0(transitive)
+ Addedrework-inherit@0.2.1(transitive)
- Removedcss@1.4.1(transitive)
- Removedcss-parse@1.5.2(transitive)
- Removedrework-inherit@0.1.5(transitive)
Updatedcss@1.4.3
Updatedrework-inherit@0.2.1