Skip to content

Commit 880f387

Browse files
author
jgillespie
committed
style: small fixes to get lint:prettier to pass
1 parent 898c0b6 commit 880f387

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ For long term caching use `filename: "[contenthash].css"`. Optionally add `[name
532532
#### rel="preload" support
533533

534534
On browsers that support `<link rel="preload" as="style">`, then CSS links will be preloaded by default.
535-
This is both to improve page load performance, and addresess Chrome Lighthouse SEO performance audits requiring the use of rel="preload" with asynchronous chunks.
535+
This is both to improve page load performance, and addresess Chrome Lighthouse SEO performance audits requiring the use of rel="preload" with asynchronous chunks.
536536

537537
-[Lighthouse article](https://developers.google.com/web/tools/lighthouse/audits/preload)
538538

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ class MiniCssExtractPlugin {
388388
'if(supportsPreload) {',
389389
Template.indent([
390390
'var execLinkTag = document.createElement("link");',
391-
`execLinkTag.href = ${
392-
mainTemplate.requireFn
393-
}.p + ${linkHrefPath};`,
391+
`execLinkTag.href = ${mainTemplate.requireFn}.p + ${linkHrefPath};`,
394392
'execLinkTag.rel = "stylesheet";',
395393
'execLinkTag.type = "text/css";',
396394
'document.body.appendChild(execLinkTag);',

0 commit comments

Comments
 (0)