Skip to content

Instantly share code, notes, and snippets.

@dudesl
Created August 6, 2015 19:40
Show Gist options
  • Save dudesl/3aecfc9252afa70257ae to your computer and use it in GitHub Desktop.
Save dudesl/3aecfc9252afa70257ae to your computer and use it in GitHub Desktop.
// Versión compilada de estilos en ./web-app/build/css
gulp.task('cssBuild', function() {
Object.keys(bundles.css).forEach(function(bundle) {
// console.log(collection);
console.log(bundle);
console.log(bundles.css[bundle]);
return gulp.src(bundles.css[bundle])
.pipe($.concat(bundle + '.css'))
.pipe($.replace('../images','../assets'))
.pipe($.replace('../css/assets','../assets'))
.pipe($.size({
title: bundle + '.css size: '
}))
.pipe($.minifyCss())
.pipe($.size({
title: bundle + '.css.min size: '
}))
.pipe(gulp.dest(src.build.styles));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment