mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-13 16:45:14 +01:00
build fixes
This commit is contained in:
parent
0118752361
commit
34592465dd
@ -5,7 +5,7 @@ title: CSS App Store Badges
|
||||
image: teaser-appstorebadges.png
|
||||
|
||||
author: Matthias Kretschmann
|
||||
date: 2015-09-13 15:55:18.418548000 +02:00
|
||||
date: 2015-09-13 18:55:18.418548000 +02:00
|
||||
|
||||
category: goodies
|
||||
tags:
|
||||
|
10
gulpfile.js
10
gulpfile.js
@ -7,7 +7,8 @@ var gulp = require('gulp'),
|
||||
chalk = require('chalk'),
|
||||
merge = require('merge-stream'),
|
||||
pkg = require('./package.json'),
|
||||
parallelize = require('concurrent-transform');
|
||||
parallelize = require('concurrent-transform'),
|
||||
combineMq = require('gulp-combine-mq');
|
||||
|
||||
// Temporary solution until gulp 4
|
||||
// https://github.com/gulpjs/gulp/issues/355
|
||||
@ -152,8 +153,8 @@ gulp.task('css', function() {
|
||||
src + '/_assets/styl/post-*.styl'
|
||||
])
|
||||
.pipe($.stylus({ 'include css': true })).on('error', onError)
|
||||
.pipe($.autoprefixer({ browsers: 'last 2 versions' })).on('error', onError)
|
||||
.pipe($.if(isProduction, $.combineMq({ beautify: false })))
|
||||
.pipe($.autoprefixer({ browsers: 'last 2 versions' }))
|
||||
.pipe($.if(isProduction, combineMq({ beautify: false }))).on('error', onError)
|
||||
.pipe($.if(isProduction, $.cssmin()))
|
||||
.pipe($.if(isProduction, $.header(banner, { pkg: pkg })))
|
||||
.pipe($.rename({ suffix: '.min' }))
|
||||
@ -379,7 +380,8 @@ gulp.task('build', function(cb) {
|
||||
runSequence(
|
||||
'clean',
|
||||
'jekyll',
|
||||
['html', 'css', 'js', 'images', 'icons', 'fonts', 'media'],
|
||||
//'html',
|
||||
['css', 'js', 'images', 'icons', 'fonts', 'media'],
|
||||
'rev',
|
||||
'rev:replace',
|
||||
cb
|
||||
|
Loading…
Reference in New Issue
Block a user