Convert and replace src attrs within your data. Based on catindev/gulp-inline-image-path.
npm install gulp-rewrite-image-pathConvert and replace the src of the images in your HTML files.
##### gulpfile.js
``js
var gulp = require('gulp');
var rewriteImagePath = require('gulp-rewrite-image-path');
gulp.task('default', function () {
gulp.src('index.html')
...
.pipe(rewriteImagePath({path:"build/images"}))
...
});
`
##### Before:
`html`


...
##### After:
`html``


...
MIT © lagartoflojo