summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index dbf1406..e413a14 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -2,11 +2,19 @@ var gulp = require('gulp');
var cssnano = require('gulp-cssnano');
var htmlmin = require('gulp-htmlmin');
var uncss = require('gulp-uncss');
+var concat = require('gulp-concat');
-gulp.task('default', function() {
+gulp.task('concat', function() {
+ return gulp.src(['static/normalize.css', 'static/skeleton.css', 'static/font.css', 'static/custom.css'])
+ .pipe(concat('concat.css'))
+ .pipe(gulp.dest('./static/'));
+});
+
+gulp.task('uncss', function() {
return gulp.src('static/concat.css')
.pipe(uncss({
- html: ['layouts/*.html', 'layouts/partials/*.html', 'layouts/_default/*.html']
+ html: ['public/*.html', 'public/projects/*.html', 'public/journal/*.html', 'public/journal/**/*.html'],
+ ignore: ['.text-right', '.text-left']
}))
.pipe(cssnano())
.pipe(gulp.dest('./static/gulp.css'));