A Vue.js project 使用VUE WEBPACK AXIOS VUE-ROTER 构建的VUE图片画廊,通过写这个demo让我理解到了VUE是基于数据变化来操作Dom。可以和我另一个用js构建的图片画廊进行对比。
# 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 detailed explanation on how things work, checkout the guide and docs for vue-loader.