Sha256: 68f3af761904f2558ed730ff2e5c6be3e3bcd9f5c2fb49f416ca7fe6da42d33b
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
const bourbon = require('bourbon').includePaths; const browserSync = require('browser-sync').create(); const gulp = require('gulp'); const sass = require('gulp-sass'); sass.compiler = require('sass'); const paths = { markup: { src: './contrib/**/*.html', }, styles: { src: [ './contrib/**/*.scss', './core/**/*.scss', ], dest: './contrib/', }, }; function styles() { return gulp.src(paths.styles.src) .pipe(sass({includePaths: bourbon})) .pipe(gulp.dest(paths.styles.dest)); }; function serve(done) { browserSync.init({ open: false, server: './contrib/', }); done(); } function reload(done) { browserSync.reload(); done(); } function watch() { gulp.watch(paths.markup.src, reload); gulp.watch(paths.styles.src, gulp.series(styles, reload)); } gulp.task('default', gulp.series(styles, serve, watch));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitters-2.0.3 | Gulpfile.js |