Skip to content

Update processing to differentiate between Dev and Prod #8

@malcolmalex

Description

@malcolmalex

Tasks can be streamlined so that conditional pipe processing can occur, enabling some tasks for "build" and probably "dist" to be collapsed. See this example from gulp-util:

// gulp should be called like this :
// $ gulp --type production
gulp.task('scripts', function() {
  gulp.src('src/**/*.js')
    .pipe(concat('script.js'))
    .pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())
    .pipe(gulp.dest('dist/');
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions