Skip to content

Commit 5b96460

Browse files
committed
Update README.md
1 parent fe1a9f8 commit 5b96460

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,7 @@ Whether to remove the original `<link rel="stylesheet">` tags after (possibly) i
126126
Type: `String`
127127
Default: `filePath`
128128

129-
How to resolve hrefs. Must be a string of one character or more. **Required**.
130-
131-
Relative urls in links will have this value prepended to them. So these links:
132-
* `<a href="page-relative">Page</a>`
133-
* `<a href="/root-relative">Root</a>` <- _note leading /_
134-
135-
136-
With this option:
137-
```js
138-
inlineCss(html, { url: 'http://example.com/mushroom'})
139-
.then(function(html) { console.log(html); });
140-
```
141-
142-
Will result in
143-
144-
* `<a href="http://example.com/mushroom/page-relative">Page</a>`
145-
* `<a href="http://example.com/root-relative">Root</a>`
146-
147-
If you don't need this feature, simply set the property to a short string eg `{url: ' '}` (one space) and everything will work.
129+
How to resolve hrefs. **Required**.
148130

149131
#### options.preserveMediaQueries
150132

0 commit comments

Comments
 (0)