gulp-replaces
Gulp plugin for replace strings in one pipe in files.
Last updated 2 years ago by shyam-chen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-replaces 
SYNC missed versions from official npm registry.

gulp-replaces Build Status Coverage Status

Gulp plugin for replace strings in one pipe in files.

Install

$ npm i gulp-replaces -D
# or
$ yarn add gulp-replaces -D

Usage

// gulpfile.js
const gulp = require('gulp');
const replaces = require('gulp-replaces');

gulp.task('default', () => {
  return gulp
    .src('./src/main.js')
    .pipe(replaces({
      'process.env.NODE_ENV': JSON.stringify('development'),
      'process.env.PORT': 3000,
    }))
    .pipe(gulp.dest('./dist'));
});

Current Tags

  • 0.1.5                                ...           latest (2 years ago)

6 Versions

  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 4
Last Day 1
Last Week 1
Last Month 14
Dependencies (1)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |