Skip to content

Commit 1bfbf28

Browse files
committed
Ignore anchor-js assets in sw generation.
1 parent 57360ce commit 1bfbf28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Add static files to prefetch.
5959
{% endcomment %}
6060
{% for file in site.static_files %}
6161
{% assign basename = file.path | split:'/' | last %}
62-
{% unless ignored contains basename %}
62+
{% unless ignored contains basename or file.path contains 'anchor-js' %}
6363
{% assign prefetch = prefetch | push:file.path %}
6464
{% endunless %}
6565
{% endfor %}

0 commit comments

Comments
 (0)