egg-view-vue-ssr-es7
v0.0.4
Published
vue server side render solution for egg-view-vue
Downloads
5
Readme
egg-view-vue-ssr
vue server side render solution for egg-view-vue
Install
$ npm i egg-view-vue-ssr --save
Usage
// {app_root}/config/plugin.js
exports.vuessr = {
enable: true,
package: 'egg-view-vue-ssr',
};
Configuration
// {app_root}/config/config.default.js
exports.vuessr = {
// layout: path.join(app.baseDir, 'app/view/layout.html'),
// manifest: path.join(app.baseDir, 'config/manifest.json'),
// buildConfig: path.join(app.baseDir, 'config/buildConfig.json'),
// injectCss: true,
// injectJs: true,
// fallbackToClient: true, // fallback to client rendering after server rendering failed
// afterRender: (html, context) => {
// return html;
// },
};
see config/config.default.js for more detail.
Questions & Suggestions
Please open an issue here.