A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
demo: 点击此处
这个练习是仿照此项目写的代码,它的代码采用vue1.0版本,我当时用的2.0版本,导致页面报错,然后一点点改动,结果才显示出来。