一个可能会常用的vue模板,添加了normalize,vw来自适应移动端,只需要在
.postcssrc.js
中设置weidth和height,就可以用设计稿的宽高来进行切图,具体参照如何在Vue项目中使用vw实现移动端适配
# 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.