vue2
vue2
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
pure mock data
# dependencies puer-mock
npm install -g puer-mock
# mock serve serve port is 8000
npm run mock
# mock api config
edit _mockserver.json
For detailed explanation on how things work, checkout the guide and docs for vue-loader.