message: feat: copy over static folder if present
diff: @@ -34,7 +34,7 @@ async function build({flags}) {
  const spinner = ora(`Building to "${upath}"`).start();
  - const { config } = await loadConfig({ cwd });
  + const { config, filepath } = await loadConfig({ cwd });
  const { entry = [], cover } = config;
  const docs = await loadDocsTree({
  @@ -101,6 +101,10 @@ async function build({flags}) {
  await sander.writeFile(out, 'api/demo', `${pattern.id}.html`, demo(result, pattern));
  }));
  + // Copy /static/
  + if (await sander.exists(filepath || cwd, "static")) {
  + await sander.copydir(filepath || cwd, "static").to(out, "api/static");
  + }
  spinner.succeed(`Built to "${upath}"`);
  }
  