Getting ready

This recipe is of intermediate level. Before coming here, you should have completed the Choosing a development environment recipe in Chapter 1, Getting Started with Vue.js, and should know how to set up a project with npm.

Also, ensure that you have the vue-cli package installed globally with the following command:

npm install -g vue-cli

Get Vue.js 2 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.