Correct service worker name

This commit is contained in:
Jake Archibald
2020-12-09 21:54:08 +00:00
parent c6e6042726
commit 722f1c806c
2 changed files with 17 additions and 1 deletions

View File

@@ -112,7 +112,9 @@ export default async function ({ watch }) {
plugins: [
{ resolveFileUrl, resolveImportMeta },
OMT({ loader: await omtLoaderPromise }),
serviceWorkerPlugin({ output: 'static/sw.js' }),
serviceWorkerPlugin({
output: 'static/serviceworker.js',
}),
...commonPlugins(),
commonjs(),
resolve(),