Skip to content

Instantly share code, notes, and snippets.

@sebastiandedeyne
Created August 16, 2015 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastiandedeyne/bafde72ccbe68d351a29 to your computer and use it in GitHub Desktop.
Save sebastiandedeyne/bafde72ccbe68d351a29 to your computer and use it in GitHub Desktop.
Jekyll with elixir
var elixir = require('laravel-elixir');
var gulp = require('gulp');
var shell = require('gulp-shell');
elixir.extend('jekyll', function() {
gulp.src('').pipe(shell('jekyll serve --no-watch'));
new elixir.Task('jekyll', function() {
return gulp.src('').pipe(shell('jekyll build'));
})
.watch(['./**', '!./node_modules/**', '!./_site/**']);
});
elixir(function(mix) {
mix
.sass('site.scss', 'css')
.jekyll()
;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment