PWA back?
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-20 19:00:31 +02:00
parent 1b32b9480f
commit f4f9325916
2 changed files with 17 additions and 17 deletions

View File

@@ -128,20 +128,20 @@ export default {
** Service worker
*/
// ...(!dev && {
// serviceworker: {
// input: sapperConfig.serviceworker.input(),
// output: sapperConfig.serviceworker.output(),
// plugins: [
// resolve(),
// aliases,
// replace({
// 'process.browser': true,
// ...replaceOptions
// }),
// commonjs(),
// !dev && terser()
// ],
// onwarn,
// }
serviceworker: {
input: sapperConfig.serviceworker.input(),
output: sapperConfig.serviceworker.output(),
plugins: [
resolve(),
aliases,
replace({
'process.browser': true,
...replaceOptions
}),
commonjs(),
!dev && terser()
],
onwarn,
}
// })
}