-
-
Save csharpfritz/4cc7887b295fce6755e21ee664bcb9c7 to your computer and use it in GitHub Desktop.
Gulp with minify css script
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 gulp = require('gulp'), | |
concat = require("gulp-concat"), | |
cssmin = require("gulp-cssmin"), | |
uglify = require("gulp-uglify"); | |
gulp.task("min-css", function () { | |
// Deploy bootstrap | |
gulp.src("bower_components/bootstrap/dist/fonts/*") | |
.pipe(gulp.dest("fonts")); | |
gulp.src("bower_components/bootstrap/dist/js/*.min.js") | |
.pipe(gulp.dest("Scripts")); | |
// Compress site.css and bootstrap.css | |
gulp.src(["bower_components/bootstrap/dist/css/bootstrap.min.css", | |
"Content/site.css"]) | |
.pipe(concat("Content/site.min.css")) | |
.pipe(cssmin()) | |
.pipe(gulp.dest(".")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment