We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee06c96 commit cbdc12dCopy full SHA for cbdc12d
index.js
@@ -22,10 +22,11 @@ class NetlifyServerPushPlugin {
22
const handler = (compilation, callback) => {
23
let manifest = compilation.assets['push-manifest.json'];
24
if (!manifest) {
25
- // on pre-render build this is not present and thus need an early exit
+ // On pre-render build this is not present and thus need an early exit
26
callback();
27
return;
28
}
29
+
30
manifest = JSON.parse(manifest.source());
31
32
let headers =
@@ -37,6 +38,7 @@ class NetlifyServerPushPlugin {
37
38
39
const redirects = `${this.redirects.join('\n')}\n/* /index.html 200`;
40
41
+ // eslint-disable-next-line guard-for-in
42
for (const route in manifest) {
43
const files = Object.keys(manifest[route]);
44
let routePreloadText = `${route}`;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments