Skip to content

Commit 50d7c45

Browse files
author
Nick Hwang
committed
Add minified css
1 parent 1ac27da commit 50d7c45

6 files changed

+14
-0
lines changed

dist/css/tether-theme-arrows-dark.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/tether-theme-arrows.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/tether-theme-basic.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/tether.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var coffee = require('gulp-coffee');
66
var concat = require('gulp-concat');
77
var filter = require('gulp-filter');
88
var header = require('gulp-header');
9+
var minify = require('gulp-minify-css');
910
var plumber = require('gulp-plumber');
1011
var prefixer = require('gulp-autoprefixer');
1112
var rename = require('gulp-rename');
@@ -58,8 +59,16 @@ gulp.task('js', function() {
5859
// CSS
5960
gulp.task('css', function() {
6061
gulp.src('./src/css/**/*.sass')
62+
.pipe(plumber())
6163
.pipe(sass())
6264
.pipe(prefixer())
65+
66+
// Original
67+
.pipe(gulp.dest(distDir + '/css'))
68+
69+
// Minified
70+
.pipe(minify())
71+
.pipe(rename({suffix: '.min'}))
6372
.pipe(gulp.dest(distDir + '/css'));
6473
});
6574

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"gulp-concat": "^2.5.2",
2525
"gulp-filter": "^2.0.2",
2626
"gulp-header": "^1.2.2",
27+
"gulp-minify-css": "^1.1.5",
2728
"gulp-plumber": "^1.0.1",
2829
"gulp-rename": "^1.2.2",
2930
"gulp-sass": "^2.0.1",

0 commit comments

Comments
 (0)