{"size": 567, "ext": "js", "max_stars_repo_path": "common/commands/serve.js", "max_stars_repo_name": "seafoodframework/seafood", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "common/commands/serve.js", "max_issues_repo_name": "seafoodframework/seafood", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "common/commands/serve.js", "max_forks_repo_name": "seafoodframework/seafood", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.68, "max_line_length": 55, "alphanum_fraction": 0.5167548501}
module.exports = (program, projectManager) => {
  program
    .command('serve')
    .allowUnknownOption()
    .action(() => {
      projectManager.setMode('development')

      const webpack = require('webpack')
      const config = projectManager.webpack.getConfig()

      webpack(config).watch({
        hot: false,
        inline: false,
      }, (err, stats) => {
        if (err || stats.hasErrors()) {
          console.log(err || stats.toString({
            chunks: false,
            colors: true
          }))
          return
        }
      })
    });
}
