gulp-concat-dirs
v1.0.0
Published
Package for concatenation directories to one file for every directory.
Downloads
14
Maintainers
Readme
Gulp Package for concatenation directories to one file for every directory
Fork from gulp-concat-dir
Install
npm install gulp-concat-dirs
Example
var gulp = require('gulp');
var concatDir = require('gulp-concat-dirs');
gulp.task('concat',function(){
return gulp
.src('js/**/*.js')
.pipe(concatDir())
.pipe(gulp.dest('build/js'));
});
Options
options.appendName
options.appendName
- String append filename. For example:
gulp.task('concat',function(){
return gulp
.src('js/**/*.js')
.pipe(concatDir({appendName: '.min.js'}))
.pipe(gulp.dest('build/js'));
});
Directories: js/app/
js/libs/
Return: build/js/app.min.js
build/js/libs.min.js
options.prependName
options.prependName
- String prepend filename. For example:
gulp.task('concat',function(){
return gulp
.src('js/**/*.js')
.pipe(concatDir({appendName: '.min.js', prependName: 'app.'}))
.pipe(gulp.dest('build/js'));
});
Directories: js/main/
js/libs/
Return: build/js/app.main.min.js
build/js/app.libs.min.js