We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12105b commit c758825Copy full SHA for c758825
bin/cmd.js
@@ -18,13 +18,18 @@ program.version(pkg.version);
18
program
19
.option("-c --config <webpack-config>", "additional webpack configuration")
20
.option("-p --port <port>", "port to serve from (default: 9000)")
21
+ .option("-s --static", "serve pre-built lambda files")
22
23
24
.command("serve <dir>")
25
.description("serve and watch functions")
26
.action(function(cmd, options) {
27
console.log("Starting server");
28
var server = serve.listen(program.port || 9000);
29
+ var static = Boolean(program.static);
30
+ if(static) {
31
+ return
32
+ }
33
build.watch(cmd, program.config, function(err, stats) {
34
if (err) {
35
console.error(err);
0 commit comments