From: Marek Ć uppa Date: Wed, 11 Sep 2013 22:20:09 +0000 (+0200) Subject: Add option to Gruntfile.js to specify server port X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8efad0b27204dec8e9ca028a93764810c0abc6a;p=reveal.js.git Add option to Gruntfile.js to specify server port --- diff --git a/Gruntfile.js b/Gruntfile.js index 4df3181..124a78d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,6 @@ /* global module:false */ module.exports = function(grunt) { - + var port = grunt.option('port') || 8000; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), @@ -78,7 +78,7 @@ module.exports = function(grunt) { connect: { server: { options: { - port: 8000, + port: port, base: '.' } }