Skip to content
Snippets Groups Projects
Commit f0cf1f54 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

add base option for grunt serve task #1102

parent 434cd3b8
No related branches found
No related tags found
No related merge requests found
/* 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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment