mariocasciaro / gulp-concat-css

Concatenates css files, bubbling up import statements (as per the standard), and optionally rebasing urls and inlining local import statements.
MIT License
78 stars 19 forks source link

Run on changed only #3

Closed xrado closed 10 years ago

xrado commented 10 years ago

I would be nice if you could process only changed files

gulp.task('sass', function() {
    return gulp.src([
            'css/frontpage.scss',
            'css/style.scss'
        ])
        .pipe(changed('.'))
        .pipe(sass())
        .pipe(concatCss())
        .pipe(gulp.dest('.'));
});

now I need to specify which file, which is always processed. Now I need to add

.pipe(concatCss('css/frontpage.css'))
.pipe(concatCss('css/style.css'))

Am I right?

mariocasciaro commented 10 years ago

There are already other plugins if you want to process only changed files. Please look at https://github.com/wearefractal/gulp-cached

mariocasciaro commented 10 years ago

Please reopen if you want to continue the discussion on this.