UNPKG

histoire

Version:

A fast story book powered by Vite

11 lines (10 loc) • 372 B
import pc from 'picocolors'; import { createContext } from '../context.js'; import { startPreview } from '../preview.js'; export async function previewCommand(options) { const ctx = await createContext({ mode: 'build', }); const { baseUrl } = await startPreview(options.port, ctx); console.log(`Preview server listening on ${pc.cyan(baseUrl)}`); }