0.0.2 • Published 6 years ago

gulp-img-comment v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

gulp-img-comment

Insert image file name in a html comment. Util for a workflow that process images and changes the name of the file, the comment has the original file name for reference.

USAGE

Gulpfile.js
var gulp = require('gulp');
var imgComment = require('gulp-img-comment');

gulp.task('default', function () {
	gulp.src('src/index.html')

        .pipe(imgComment())
        .pipe(gulp.dest('dist'));

});
src/index.html
<tr>
    <td>
        <img src="images/test.jpg" />
    </td>
</tr>
dist/index.html
<tr>
    <td>
        <img src="images/test.jpg" /> <!-- IMG SRC: test.jpg -->
    </td>
</tr>