Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbdc12d

Browse files
fix lint errors
1 parent ee06c96 commit cbdc12d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎index.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ class NetlifyServerPushPlugin {
2222
const handler = (compilation, callback) => {
2323
let manifest = compilation.assets['push-manifest.json'];
2424
if (!manifest) {
25-
// on pre-render build this is not present and thus need an early exit
25+
// On pre-render build this is not present and thus need an early exit
2626
callback();
2727
return;
2828
}
29+
2930
manifest = JSON.parse(manifest.source());
3031

3132
let headers =
@@ -37,6 +38,7 @@ class NetlifyServerPushPlugin {
3738

3839
const redirects = `${this.redirects.join('\n')}\n/* /index.html 200`;
3940

41+
// eslint-disable-next-line guard-for-in
4042
for (const route in manifest) {
4143
const files = Object.keys(manifest[route]);
4244
let routePreloadText = `${route}`;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /