gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 127 forks source link

How dynamic rename file? #114

Closed Yuriy-Svetlov closed 8 years ago

Yuriy-Svetlov commented 8 years ago

Example I not want use gulp-rename or other plagins.

gulp.task('concat_js_test', ['compress-js'], function () {
        return gulp.src(['./src/js/js_min/navbar_button-min.js' , './src/js/js_min/navbar_menu-min.js'])
          .pipe(concat(time()+'-new.js'))
          .pipe(gulp.dest("./src/test/"));
    });

    function time(){
        return timeInMs = Date.now();
    }

Why when i used the example, give error?

yocontra commented 8 years ago

What error? Can't help you if you don't include any information

Yuriy-Svetlov commented 8 years ago

Thanks You . It is my error. I am sorry. All Good work! Thanks you for good plugin!