mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-16 05:12:47 -06:00
25ba04c980
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.
25 lines
412 B
JavaScript
Executable File
25 lines
412 B
JavaScript
Executable File
/**
|
|
* Browser Sync setup and tasks
|
|
**/
|
|
|
|
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var browserSync = require('browser-sync');
|
|
var config = require('./config.js');
|
|
|
|
var baseDir = config.paths.dest;
|
|
|
|
gulp.task('browser-sync', function() {
|
|
browserSync.init({
|
|
'notify': true,
|
|
'server': {
|
|
'baseDir': baseDir
|
|
}
|
|
});
|
|
});
|
|
|
|
gulp.task('browser-sync-reload', function() {
|
|
browserSync.reload();
|
|
});
|