wp-renderer
v1.0.10
Published
Pre renderer webpack plugin for sites and SPAs.
Downloads
2
Readme
Basic Usage (webpack.config.js
)
const path = require('path')
const WPRenderer = require('wp-renderer')
module.exports = {
plugins: [
...
new WPRenderer({
// Required - The path to the webpack-outputted app to prerender.
staticDir: path.join(__dirname, 'dist'),
// Required - Routes to render.
routes: [ '/', '/some-route' ],
})
]
}