diff --git a/lib/commands/server.js b/lib/commands/server.js index 4cf9e64..3ad5f35 100644 --- a/lib/commands/server.js +++ b/lib/commands/server.js @@ -6,17 +6,8 @@ module.exports = function (cli) { command.description('start server for local development'); command.handler(function (customDir, done) { - var childProcessArgs = []; - var port = cli.args.args.p || cli.args.args.port; - var host = cli.args.args.host; - - if (customDir && typeof customDir !== 'object') childProcessArgs.unshift(customDir); - if (port) childProcessArgs = childProcessArgs.concat('-p', port); - if (host) childProcessArgs = childProcessArgs.concat('-h', host); - if (host) childProcessArgs = childProcessArgs.concat('--logging'); - var cmd = path.resolve(__dirname, '../../node_modules/.bin/superstatic'); - var server = spawn(cmd , childProcessArgs); + var server = spawn(cmd , process.argv.splice(3)); server.stdout.on('data', function (data) { cli.log(data.toString()); diff --git a/package.json b/package.json index 27f137a..3bea9c9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "request": "2.36.x", "semver": "2.3.x", "sizer": "0.1.x", - "superstatic": "~0.10.1", + "superstatic": "~0.11.0", "tarzan": "0.1.x", "through": "~2.3.4", "update-notifier": "~0.1.8",