Skip to content

Latest commit

 

History

History
 
 

with-vue

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Razzle Vue Example

How to use

Create and start the example:
npx create-razzle-app --example with-vue with-vue

cd with-vue
yarn start

Idea behind the example

This shows how to setup Vue with Razzle.

Here is a list of changes from Razzle's base template:

  1. Install razzle-plugin-vue, eslint-plugin-vue as devDependencies.
  2. Add vue to the razzle plugins config
  3. Install vue, vue-server-renderer as dependencies
  4. Remove react, react-dom, react-router-dom entirely
  5. Update server/server.js to use vue-server-renderer's renderToString function.
  6. Update client.js to mount Vue to #app and start HMR