--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
28
node_modules/rework-plugin-url/README.md
generated
vendored
Normal file
28
node_modules/rework-plugin-url/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
rework-plugin-url
|
||||
====================
|
||||
|
||||
[](https://travis-ci.org/reworkcss/rework-plugin-url)
|
||||
|
||||
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);
|
||||
}
|
||||
```
|
||||
Loading…
Reference in a new issue