make indentation look nicer
This commit is contained in:
parent
c05fd94028
commit
c488276de8
@ -40,10 +40,10 @@ module.exports =
|
||||
postProcess(renderedRoute) {
|
||||
const dom = new JSDOM(renderedRoute.html, { runScripts: 'outside-only' })
|
||||
dom.window.eval(`
|
||||
const sourceTarget = document.createElement('script')
|
||||
sourceTarget.src = '/main.js'
|
||||
document.body.appendChild(sourceTarget)
|
||||
`)
|
||||
const sourceTarget = document.createElement('script')
|
||||
sourceTarget.src = '/main.js'
|
||||
document.body.appendChild(sourceTarget)
|
||||
`)
|
||||
return {
|
||||
...renderedRoute,
|
||||
html: dom.serialize(),
|
||||
@ -53,9 +53,9 @@ module.exports =
|
||||
new InjectManifest({
|
||||
importWorkboxFrom: 'local',
|
||||
swSrc: magicFile(`
|
||||
workbox.routing.registerNavigationRoute('/index.html');
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest);
|
||||
`),
|
||||
workbox.routing.registerNavigationRoute('/index.html');
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest);
|
||||
`),
|
||||
swDest: 'sw.js',
|
||||
}),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user