Starting with VuePress 1.x.x, VuePress provides an AppContext
object that stores all the state of the current app and can be accessed through the plugin API.
::: warning Note Context of each plugin is a isolated context inherited from the same app context. :::
module.exports = (options, ctx) => {
// ...
}
- Type:
boolean
Whether VuePress run in production environment mode.
- Type:
array
Contains a list of Page objects
- Type:
string
Root directory where the documents are located.
- Type:
string
Root directory where the temporary files are located.
- Type:
string
Output path.
- Type:
string
See: base.
- Type:
Function
A utility for writing temporary files to tempPath.