Skip to content

Instantly share code, notes, and snippets.

@AkshayRana92
Created July 8, 2017 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkshayRana92/48d8086ec09d85e8e14ba3c4cf873f4f to your computer and use it in GitHub Desktop.
Save AkshayRana92/48d8086ec09d85e8e14ba3c4cf873f4f to your computer and use it in GitHub Desktop.
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