Skip to content

Vanilla-IceCream/gulp-replaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'));
});

About

Gulp plugin for replace strings in one pipe in files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published