Closed
Description
Feature request
What problem does this feature solve?
custom dev server koa config.
What does the proposed API look like?
In .vuepress/config.js:
module.exports = {
webpackServer: (app, middleware, options) => {
app.use(xxx)
}
}
How should this be implemented in your opinion?
In lib/dev.js,add code:
// ... other code
app.use(convert(history({
rewrites: [
{ from: /\.html$/, to: '/' }
]
})))
if (options.siteConfig.webpackServer) {
options.siteConfig.webpackServer(app, middleware, options)
}
Are you willing to work on this yourself?**
Yes!