Performances optimizations WIP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-17 14:33:49 +02:00
parent bb5689f0b6
commit 3c05d6d222
17 changed files with 211 additions and 181 deletions

View File

@@ -130,21 +130,21 @@ 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,
}
})
// ...(!dev && {
// serviceworker: {
// input: sapperConfig.serviceworker.input(),
// output: sapperConfig.serviceworker.output(),
// plugins: [
// resolve(),
// aliases,
// replace({
// 'process.browser': true,
// ...replaceOptions
// }),
// commonjs(),
// !dev && terser()
// ],
// onwarn,
// }
// })
}