gulp-substituter
Replace matched strings in files for defined values
Install
$ npm install --save-dev gulp-substituter
Gulp Usage
gulpfile.js
var sprites = ; gulp;
index.html
<!-- substitute:title -->
API
substituter(options)
Options
Object of keys that you want to replace
Predefined keys
__start
Type: String
Default: <!--
Start tag for matching values
__end
Type: String
Default: -->
End tag for matching values
__prefix
Type: String
Default: substitute
prefix before key
Example
title: 'website' description: 'sample website' analytics: 'example-123'