标签:tag top register rip build com fast 1.2 babel
最近用vue2.0做项目,具体如下:
使用的插件:
下拉刷新插件: better-scroll
状态管理: vuex
路由管理: vue-router
轮播插件: swiper
接口交互: axios
300毫秒延迟 : fastclick
package.json 如下
{
"name": "vue-demo-maizuo",
"version": "1.0.0",
"description": "vue-demo-maizuo",
"author": "shadow <822599633@qq.com>",
"private": true,
"scripts": {
"dev": "node build/dev-server.js",
"build": "node build/build.js"
},
"dependencies": {
"axios": "^0.15.3",
"fastclick": "^1.0.6",
"vue": "^2.1.0",
"vue-awesome-swiper": "^2.2.6",
"vue-router": "^2.1.1",
"vuex": "^2.1.1"
},
"devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.0.0",
"babel-loader": "^6.0.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"chalk": "^1.1.3",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^0.25.0",
"eventsource-polyfill": "^0.9.6",
"express": "^4.13.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"function-bind": "^1.0.2",
"html-webpack-plugin": "^2.8.1",
"http-proxy-middleware": "^0.17.2",
"json-loader": "^0.5.4",
"node-sass": "^4.5.0",
"opn": "^4.0.2",
"ora": "^0.3.0",
"postcss": "^5.2.6",
"postcss-loader": "^1.2.1",
"sass-loader": "^4.1.1",
"semver": "^5.3.0",
"shelljs": "^0.7.4",
"url-loader": "^0.5.7",
"vue-loader": "^10.0.0",
"vue-style-loader": "^1.0.0",
"vue-template-compiler": "^2.1.0",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.8.3",
"webpack-hot-middleware": "^2.12.2",
"webpack-merge": "^0.14.1"
},
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
}
}
安装问题:
安装node-sass :如果不是这样安装,会失败,项目跑不起来
cnpm install --save-dev node-sass
标签:tag top register rip build com fast 1.2 babel
原文地址:http://www.cnblogs.com/vs1435/p/6518287.html