diff options
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 3b9f98e..a851845 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,8 @@ /* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; + var base = grunt.option('base') || '.'; + // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), @@ -91,9 +93,9 @@ module.exports = function(grunt) { server: { options: { port: port, - base: '.', - livereload: true, - open: true + base: base, + livereload: true, + open: true } } }, @@ -110,9 +112,9 @@ module.exports = function(grunt) { }, watch: { - options: { - livereload: true - }, + options: { + livereload: true + }, js: { files: [ 'Gruntfile.js', 'js/reveal.js' ], tasks: 'js' @@ -125,9 +127,9 @@ module.exports = function(grunt) { files: [ 'css/reveal.scss' ], tasks: 'css-core' }, - html: { - files: [ 'index.html'] - } + html: { + files: [ 'index.html'] + } } }); |