基于vue-cli脚手架的webpack-template,发布后能利用localStorage缓存文件。初始化之后无需再做其他配置
- For this template: common questions specific to this template are answered and each part is described in greater detail
- For Vue 2.0: general information about how to work with Vue, not specific to this template
$ npm install -g vue-cli
$ vue init xuejianrong/loader my-project
$ cd my-project
$ npm install
$ npm run dev
$ npm run build
每一次build之前需要在package.json中修改version,否则无法更新修改。是否更新缓存的依据就是这个版本号