aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-06-03 11:42:17 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-06-03 11:42:38 +0200
commitf0cf1f54d04088d241acf81eef42bd878a9f02ba (patch)
treef5b4d154292aaa6a968a55ac85abf2f1f7bafd00 /Gruntfile.js
parent434cd3b8ae36b56196eb833106346e35e40c489c (diff)
downloadfreenode-live-2017-presentation-f0cf1f54d04088d241acf81eef42bd878a9f02ba.tar
freenode-live-2017-presentation-f0cf1f54d04088d241acf81eef42bd878a9f02ba.tar.gz
add base option for grunt serve task #1102
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 46385f4..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,7 +93,7 @@ module.exports = function(grunt) {
server: {
options: {
port: port,
- base: '.',
+ base: base,
livereload: true,
open: true
}