Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var uglifycss = require('gulp-uglifycss'); //Add dependency to package.json if not added
gulp.task('vendor-css', function () {
gulp.src(['./assets/css/*.css', './assets/css/**/*.css']) //All css files
.pipe(uglifycss({
'maxLineLen': 80,
'uglyComments': true
}))
.pipe(concat('vendor.css'))
.pipe(gulp.dest('dist/prod/src/assets/css/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment