Skip to content
personally website
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
server
src
.editorconfig
.eslintignore
.eslintrc
.gitignore
README.md
package.json
postcss.config.js
push.key

README.md

PWA

该库是借助 react starter kit 来构建的 PWA skeleton。该库没有使用其他大型的 Service Worker 库,纯原生手写,相关的测试都已经通过,适合新手参考。具体使用可以参考:PWA 实践

install

首先,下载该库:

git clone https://github.com/JimmyVV/PWA-cookbook

下载相关的 npm 包。(本来想用 yarn 的,结果,发现它不能根据现有的包生成 lockfile,然后作罢) 下载完成之后,运行即可:

npm start

访问 localhost:3000 就可以看到:

image_1bapj1cess0oibd1gem1g21qmom.png-33kB

下面的响应式网页了。

Author

田淮仁 villainthr@gmail.com

You can’t perform that action at this time.