例子 将页面公共头部提取为组件(更新于2017-5-5)
按照如下命令运行即可,具体步骤请参考我的博客
# 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 detailed explanation on how things work, checkout the guide and docs for vue-loader.