gulp-inline-image-path

0.0.10 • Public • Published

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

Package Sidebar

Install

npm i gulp-inline-image-path

Weekly Downloads

3

Version

0.0.10

License

MIT

Last publish

Collaborators

  • catindev