Performances optimizations WIP
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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,
|
||||
// }
|
||||
// })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user