This commit is contained in:
mgabdev
2020-03-03 23:59:11 -05:00
parent 33952e424f
commit 143725b5bd
17 changed files with 34 additions and 176 deletions

View File

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