gulp-js-replace
v0.0.3
Published
A string replace plugin for gulp
Downloads
1
Readme
gulp-js-replace [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url]
replace filename in .js file via rev.manifest.json for gulp 3
Usage
First, install gulp-js-replace
as a development dependency:
npm install --save-dev gulp-js-replace
Then, add it to your gulpfile.js
:
example
var replace = require('gulp-replace');
var path = require('path');
gulp.task('templates', function(){
gulp.src(['file.txt'])
.pipe(replace(path.join(__dirname, 'YOUR_REV_MANIFEST_DIR')))
.pipe(gulp.dest('build/file.txt'));
});