vue init webpack project
用了vue-cli脚手架来初始化的项目 装了很多东西,个人感觉作为单页面应用有点笨重了,package.json文件有点大,所以下次,我打算自己来配置webpack 初始化的这个项目就将就着用吧 把主要用到的技术列一下:ES6, Vue2, vue-router, webpack, element-ui
# 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.