Created
July 8, 2017 17:32
-
-
Save AkshayRana92/48d8086ec09d85e8e14ba3c4cf873f4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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