Permalink
Browse files

Release 0.4.0

  • Loading branch information...
1 parent 5157fb8 commit b6cffcac9d88229ab18cf42bd0469e1e3e646fba @tj tj committed Sep 17, 2012
Showing with 21 additions and 1 deletion.
  1. +5 −0 History.md
  2. +15 −0 Readme.md
  3. +1 −1 package.json
View
@@ -1,4 +1,9 @@
+0.4.0 / 2012-09-17
+==================
+
+ * add `url()` mapping plugin
+
0.3.0 / 2012-09-06
==================
View
@@ -174,6 +174,21 @@ ul {
}
```
+### .url(callback)
+
+ Map `url()` calls, useful for inlining images as data-uris, converting
+ relative paths to absolute etc.
+
+```js
+function rewrite(url) {
+ return 'http://example.com' + url;
+}
+
+rework(str)
+ .use(rework.url(rewrite))
+ .toString()
+```
+
### .keyframes([vendors])
Prefix __@keyframes__ with `vendors` defaulting to `.vendors()`.
View
@@ -1,6 +1,6 @@
{
"name": "rework",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "CSS manipulations built on CSSOM",
"keywords": ["css", "manipulation", "preprocess", "transform"],
"author": "TJ Holowaychuk <tj@vision-media.ca>",

0 comments on commit b6cffca

Please sign in to comment.