0.0.3 • Published 6 years ago

gulp-concat-same v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

基本信息

作者 : 小牧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只有两个参数:

keydefaultdescription
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