gulp-inline-image-path
v0.0.10
Published
Convert and replace src attrs within your data.
Downloads
10
Maintainers
Readme
Convert and replace src attrs within your data.
Example
gulpfile.js
var gulp = require('gulp');
var inlineImagePath = require('gulp-inline-image-path');
gulp.task('default', function () {
gulp.src('index.html')
...
.pipe(inlineImagePath({path:"build/images"}))
...
});
index.html // Before...
<html>
<head>
</head>
<body>
<img src="images/sample.png" />
...
path/index.html // ...after:
<html>
<head>
</head>
<body>
<img src="build/images/sample.png">
...
License
MIT © catindev