0.1.0 • Published 9 years ago

gulp-replace-ids v0.1.0

Weekly downloads
2
License
BSD
Repository
github
Last release
9 years ago

gulp-replace-ids

Gulp for replacing ids using predefined dictionary.

Install

$ npm install --save-dev gulp-replace-ids

Usage

var gulp = require('gulp');
var replaceIds = require('gulp-replace-ids');

gulp.task('default', function () {
	return gulp.src('templates/*.tpl')
		.pipe(replaceIds({
          dict: 'build/css_map.json',
          pattern: "{{\ *getCssName\ +\"([a-zA-Z0-9]+)\"\ *}}"
        }))
		.pipe(gulp.dest('build'));
});

API

jstyle(options)

options

dict

Type: String

Path to the dictionary file.

pattern

Type: String

RegExp pattern to match ids.

0.1.0

9 years ago