gulp-concat-same is gulp plugin that merges different extname of the same name file.
合并不同扩展名的相同名字文件的gulp插件。
作者 : 小牧COOL
QQ号 : 895355044
QQ群 : 215259343
$ npm install gulp-concat-same --save-dev
//or 使用国内镜像
$ cnpm i gulp-concat-same -D
'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/'))
)
gulp-concat-same
只有两个参数:
key | default | description |
---|---|---|
prefix |
`` | 添加前缀,默认为空 |
suffix |
.min |
添加后缀,默认 .min |
gulp-concat-same is licensed under the MIT. View the license file
All Rights Reserved · Powered by : 小牧COOL