仿去哪网完成的一个vue技术框架(含有一定学习成分),主要参考DellLee的架构模式,部分内容由本人修改,如首页icon列表部分的显示逻辑、部分css及html结构等。 整体采用vue-cli脚手架创建,可参考默认的npm命令如下:
# 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
# run unit tests
npm run unit
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.