Files
releases/docs/gulp/views.js
T
Eva Xiaohui Luo 25ba04c980 Refresh OPA website
These changes contain a redesign of the OPA website. The main changes
are (1) new frontpage w/ refreshed messaging and assets and (2) docs
ported to gitbook.
2017-07-05 15:39:45 -07:00

27 lines
592 B
JavaScript
Executable File

/**
* Compiles SCSS to CSS
**/
'use strict';
var paths = require('./config.js').paths;
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var runSequence = require('run-sequence');
var plumber = require('gulp-plumber');
var onError = require('./on-error.js');
// Paths
var watchPath = 'index.html';
var destPath = 'index.html';
gulp.task('views', function() {
return gulp.src([watchPath]);
});
gulp.task('views:watch', ['views'], function() {
return gulp.watch(watchPath).on('change', function() {
runSequence('views', 'browser-sync-reload');
});
});