after using webpack-dev-middleware
, the generated html is in memory,
but the route of express, for example,
//app.js
app.set("views", path.join(__dirname, "views"))
// routes.js
router.get("/home", (req,res) => {
res.render("home")
})
The rendering engine is looking for home.html
in the views folder, but returns 500because home.html is in memory and express cannot find it.
how does webpack-dev-middleware cooperate with express rendering engine?