Skip to content

Latest commit

 

History

History
84 lines (65 loc) · 1.97 KB

README.md

File metadata and controls

84 lines (65 loc) · 1.97 KB

gulp-concat-same


gulp-concat-same is gulp plugin that merges different extname of the same name file.
合并不同扩展名的相同名字文件的gulp插件。



基本信息

作者 : 小牧COOL

QQ号 : 895355044

QQ群215259343

Install

$ npm install gulp-concat-same --save-dev

//or 使用国内镜像

$ cnpm i gulp-concat-same -D

Usage

'use strict'
const gulp = require('gulp')
const same = require('gulp-concat-same')

gulp.task('default', () =>
  gulp.src('css/**')
    .pipe(same({
      prefix: 'mu-',
      suffix: '.min'
    }))
    .pipe(gulp.dest('dist/'))
)

Arguments

gulp-concat-same只有两个参数:

key default description
prefix `` 添加前缀,默认为空
suffix .min 添加后缀,默认 .min

gulp-concat-same 涉及技术

  • through2: 对node.js原生stream.Transform进行了封装
  • gulp-util: 开发gulp插件的实用方法
  • path: node.js原生模块,操作路径

License

gulp-concat-same is licensed under the MIT. View the license file

All Rights Reserved · Powered by : 小牧COOL