Created
October 27, 2015 15:54
-
-
Save stell/62c6a508baa69dbb04bd to your computer and use it in GitHub Desktop.
Grav Learn Template (B01 Copy)
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
// Include gulp | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var bs = require('browser-sync').create(); | |
gulp.task('bs', function () { | |
var files = [ | |
'user/pages/**/*.md', | |
'user/pages/**/*.png', | |
'user/themes/b01/**/*.css' | |
]; | |
bs.init(files, { | |
// server: { baseDir: './' } | |
proxy: 'localhost', | |
port: '80', | |
baseDir: './', | |
startPath: 'pgrav' | |
}) | |
gulp.watch("./user/themes/b01/scss/**/*.scss", ['sass']); | |
}); | |
gulp.task('sass', function () { | |
gulp.src('./user/themes/b01/scss/**/*.scss') | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('./user/themes/b01/css-compiled/')) | |
.pipe(bs.stream()); | |
}); | |
gulp.task('default', ['bs']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment