-
Vue-pwa-skeleton是一个基于Vue-cli的Demo项目,已集成PWA和Skeleton功能
资源介绍
vue-cli-demo with PWA and Skeleton
基于建立的示例Demo,在Demo基础上集成了PWA和Skeleton
PWA基于实现
Skeleton基于实现
启动步骤
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
workbox
# webpack配置中添加workbox-webpack-plugin
const WorkBoxPlugin = require('workbox-webpack-plugin')
# 通过service-worker.js作为模板生成最终service-worker文件
# 这里可以添加部分自定