Skip to content

Instantly share code, notes, and snippets.

@stell
Created October 27, 2015 15:54
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 stell/62c6a508baa69dbb04bd to your computer and use it in GitHub Desktop.
Save stell/62c6a508baa69dbb04bd to your computer and use it in GitHub Desktop.
Grav Learn Template (B01 Copy)
// 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