Skip to content

Commit

Permalink
feat: experimental prod mode for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
osdevisnot committed May 10, 2020
1 parent 23f6936 commit 019cd95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli.js
Expand Up @@ -11,6 +11,7 @@ const command = process.argv[2];
await init(command);
break;
case 'build':
case 'prod':
case 'watch':
case 'start':
log(`${name}@${version} - Working on ${command}...`);
Expand Down
4 changes: 4 additions & 0 deletions src/klap.js
Expand Up @@ -159,6 +159,10 @@ const klap = async (command, pkg) => {
watcher = watch(watchOptions);
watcher.on('event', processWatcher);
break;
case 'prod':
config = await startConfig(command, pkg, options);
build(config.outputOptions, config.inputOptions);
break;
}
};

Expand Down

0 comments on commit 019cd95

Please sign in to comment.