Implementation of vue-server-renderer with Node.js and vuejs
Available in awesome-vue
npm run dev
npm run build
npm run build-server
npm start
app.get('*', (req, res) => {
renderer.renderToString({}, (err, html) => {
if (err) {
return res.sendStatus(500)
}
res.send(index.replace('<div id=app></div>', html))
})
})
All contributions are welcome just open a pull request and explain what you did :D