How to use the @create-figma-plugin/common.readConfig function in @create-figma-plugin/common

To help you get started, we’ve selected a few @create-figma-plugin/common 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 yuanqing / create-figma-plugin / packages / build / src / build.js View on Github external
export async function build (isDevelopment, exitOnError) {
  log.info('Building plugin...')
  const config = await readConfig()
  try {
    await buildBundle(config, isDevelopment)
    await buildManifest(config)
  } catch (error) {
    log.error(error)
    if (exitOnError === true) {
      process.exit(1)
    }
    return
  }
  log.success('Done')
}