Node.js API

    App.prototype.process: () => Promise<void> | never

    An asynchronous method used to prepare the context of the current app, and which contains loading pages and plugins, apply plugins, etc.

    App.prototype.dev: () => Promise<App> | never

    Launch a dev process with current app context.

    App.prototype.build: () => Promise<App> | never

    Launch a build process with current app context.

    dev([options]): Promise<App>

    build([options]): Promise<App>

    Build your source files as a static site, actually it’s implemented by createApp:

    Copy the default theme into {targetDir}/.vuepress/theme for customization.

    sourceDir

    • Type: string

    Specify the source directory of your VuePress site.

    theme

    • Type:
    • Required: false
    • Type: array
    • Required: false

    See .

    temp

    • Type: string
    • Required:

    See .

    dest

    • Type: string
    • Required: false

    See .

    • Required: {}