html-render-webpack-plugin
Version:
webpack plugin for rendering static HTML in a multi-config webpack build
64 lines (63 loc) • 2.23 kB
JSON
{
"title": "HTMLRenderOptionsArgument",
"type": "object",
"additionalProperties": false,
"properties": {
"routes": {
"description": "List of routes to render. A file is created for each route.",
"type": "array",
"items": {
"description": "A rule condition",
"anyOf": [
{
"type": "object",
"additionalProperties": true,
"properties": {
"route": {
"description": "The path to generate",
"type": "string"
}
}
},
{ "type": "string" }
]
}
},
"skipAssets": {
"description": "If true, skip creating assets after a build. Often used in conjuction with createDevRouter.",
"type": "boolean"
},
"mapStatsToParams": {
"description": "Used to pass additional values to each render.",
"instanceof": "Function"
},
"renderDirectory": {
"description": "The directory to render files to.",
"type": "string"
},
"renderConcurrency": {
"description": "Whether to render serial or parallel",
"type": "string"
},
"transformFilePath": {
"description": "Used to build the file path from the route.",
"instanceof": "Function"
},
"transformExpressPath": {
"description": "Used to build the express route for the dev server.",
"instanceof": "Function"
},
"getRouteFromRequest": {
"description": "Used on the dev server to identify a route for a request.",
"instanceof": "Function"
},
"renderEntry": {
"description": "Which webpack entry should be used to render.",
"type": "string"
},
"extraGlobals": {
"description": "Extra values to pass to the global scope.",
"type": "object"
}
}
}