gulp-inline-css
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "gulp-inline-css", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Inline linked css in an html file. Useful for emails.", | ||
@@ -12,13 +12,13 @@ "main": "index.js", | ||
"inline-css": "^2.2.1", | ||
"through2": "^0.6.1" | ||
"through2": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^2.11.6", | ||
"coveralls": "^3.0.0", | ||
"event-stream": "^3.3.2", | ||
"gulp": "^3.9.0", | ||
"gulp-eslint": "^1.1.1", | ||
"gulp-mocha": "^2.0.0", | ||
"gulp-eslint": "^4.0.0", | ||
"gulp-mocha": "^4.3.1", | ||
"mocha": "*", | ||
"nyc": "^5.0.0", | ||
"should": "^4.6.0" | ||
"nyc": "^11.3.0", | ||
"should": "*" | ||
}, | ||
@@ -25,0 +25,0 @@ "engines": { |
@@ -151,4 +151,22 @@ # [gulp](https://github.com/wearefractal/gulp)-inline-css [![Build Status](https://travis-ci.org/jonkemp/gulp-inline-css.svg?branch=master)](https://travis-ci.org/jonkemp/gulp-inline-css) [![Coverage Status](https://coveralls.io/repos/jonkemp/gulp-inline-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/gulp-inline-css?branch=master) | ||
How to resolve hrefs. | ||
How to resolve hrefs. Must be a string of one character or more. **Required**. | ||
Relative urls in links will have this value prepended to them. So these links: | ||
* `<a href="page-relative">Page</a>` | ||
* `<a href="/root-relative">Root</a>` <- _note leading /_ | ||
With this option: | ||
```js | ||
inlineCss(html, { url: 'http://example.com/mushroom'}) | ||
.then(function(html) { console.log(html); }); | ||
``` | ||
Will result in | ||
* `<a href="http://example.com/mushroom/page-relative">Page</a>` | ||
* `<a href="http://example.com/root-relative">Root</a>` | ||
If you don't need this feature, simply set the property to a short string eg `{url: ' '}` (one space) and everything will work. | ||
#### options.preserveMediaQueries | ||
@@ -155,0 +173,0 @@ |
8004
206
- Removedreadable-stream@1.0.34(transitive)
- Removedthrough2@0.6.5(transitive)
Updatedthrough2@^2.0.3