sw
This commit is contained in:
parent
38ef52d3ba
commit
62ed0a411f
16 changed files with 245 additions and 133 deletions
|
@ -20,6 +20,7 @@ module.exports = function() {
|
|||
const files = fs.readdirSync(path.join(__dirname, '..', 'assets'));
|
||||
const code = `module.exports = {
|
||||
"package.json": require('../package.json'),
|
||||
"serviceWorker.js" : require('../app/serviceWorker.js'),
|
||||
${files.map(kv).join(',\n')}
|
||||
};`;
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue