How to use the react-static/node.build function in react-static

To help you get started, we’ve selected a few react-static examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timberio / gitdocs / bin / commands / build.js View on Github external
module.exports = function buildHandler ({ output, docVersion }) {
  console.log(`Building your docs at: "${output}"`)
  try {
    const config = getConfig({ output, docVersion })
    return build({
      config,
      silent: false,
    })
  } catch (err) {
    console.log(err)
  }
}