一个 vue.j 基架
- vuex 使用
- 图片剪切,预览
- 底部加载更多
- 缓存
- axios
- loading
- 弹层
- 提示
# 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 e2e tests
npm run e2e
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
开发工具:vscode
wpy-beautify
:格式化 vue 模板
vetur
:vue 语法高亮纠错
"vetur.format.defaultFormatter.js": "vscode-typescript"
//避免将单引号格式化成双引号
错误提示:Expected linebreaks to be 'LF' but found 'CRLF'
解决方式:.eslintrc.js 的 rules 下添加节点 'linebreak-style': 'off'
错误提示:Expected indentation of 6 spaces but found 12
解决方式:.eslintrc.js 的 rules 下添加节点'indent':'off'
安装命令:npm install less less-loader --save-dev
安装命令:
npm install node-sass --save-dev
npm install sass-loader --save-dev