Skip to content

Commit

Permalink
add base option for grunt serve task hakimel#1102
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jun 3, 2015
1 parent 434cd3b commit f0cf1f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down Expand Up @@ -91,7 +93,7 @@ module.exports = function(grunt) {
server: {
options: {
port: port,
base: '.',
base: base,
livereload: true,
open: true
}
Expand Down

0 comments on commit f0cf1f5

Please sign in to comment.