/Vue-ssr

The asyncData hook is called by the service data of all Vue before ready, and after the data is obtained to update the vuex, when we render the Vue component, the component gets all the store data of all the vuex and splits into a HTML string.

Primary LanguageVue

nuxt-demo

测试下

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm start

For detailed explanation on how things work, checkout the Nuxt.js docs.

Backpack

We use backpack to watch and build the application, so you can use the latest ES6 features (module syntax, async/await, etc.).