egg-sw
Install
$ npm i egg-sw --save
Usage
// {app_root}/config/plugin.jsexportssw = enable: true package: 'egg-sw';
Configuration
// {app_root}/config/config.default.jsexportssw = prefix: '/' path: '/service-worker.js' dir: path preload: false buffer: false maxFiles: 1 dynamic: true;
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.