Need help with egg-view-vue?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

140 Stars 14 Forks MIT License 4 Commits 0 Opened issues


vue view plugin for egg

Services available


Need anything else?

Contributors list


NPM version build status Test coverage David deps Known Vulnerabilities npm download

egg view plugin for [vue].


$ npm i egg-view-vue --save


// {app_root}/config/plugin.js
exports.vue = {
  enable: true,
  package: 'egg-view-vue',

Render in controller, support js bundle render and json bundle render (vue 2.3+)

js bundle render

// {app_root}/app/controller/test.js
exports.home = function* (ctx) {
  // {app_root}/app/view/vue-ssr-server-bundle.js
  yield ctx.render('vue-ssr-server-bundle.js', { name: 'vue js bundle render' });

json bundle render (vue 2.3+), need to config renderOptions createBundleRenderer

// {app_root}/config/config.default.js
exports.vue = {
   // renderOptions config, please @see
   renderOptions: {
     // template: '',

 // webpack vue ssr plugin build manifest file
 // clientManifest: require(path.join(app.baseDir,'public/vue-ssr-client-manifest.json')),

} };

// {app_root}/app/controller/test.js
exports.home = function* (ctx) {
  // {app_root}/app/view/vue-ssr-server-bundle.json
  yield ctx.render('vue-ssr-server-bundle.json', { name: 'vue json render' });

vue server side render example, please see egg-vue-webpack-boilerplate


see config/config.default.js for more detail.

Questions & Suggestions

Please open an issue here.



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.