no service worker

This commit is contained in:
robcolbert 2019-07-03 20:53:32 -04:00
parent 05ffe63e3d
commit 94046e97d0
1 changed files with 7 additions and 7 deletions

View File

@ -95,13 +95,13 @@ module.exports = merge(sharedConfig, {
'**/*-webfont-*.svg', '**/*-webfont-*.svg',
'**/*.woff', '**/*.woff',
], ],
ServiceWorker: { // ServiceWorker: {
entry: `imports-loader?ATTACHMENT_HOST=>${encodeURIComponent(JSON.stringify(attachmentHost))}!${encodeURI(path.join(__dirname, '../../app/javascript/gabsocial/service_worker/entry.js'))}`, // entry: `imports-loader?ATTACHMENT_HOST=>${encodeURIComponent(JSON.stringify(attachmentHost))}!${encodeURI(path.join(__dirname, '../../app/javascript/gabsocial/service_worker/entry.js'))}`,
cacheName: 'gabsocial', // cacheName: 'gabsocial',
output: '../assets/sw.js', // output: '../assets/sw.js',
publicPath: '/sw.js', // publicPath: '/sw.js',
minify: true, // minify: true,
}, // },
}), }),
], ],
}); });