Skip to content

Commit 8a92510

Browse files
jasonwilliamsJason Williams
authored and
Jason Williams
committed
added .png and .svg plus fixed test
1 parent 26f032f commit 8a92510

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/theme/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ mod tests {
180180
"css/variables.css",
181181
"book.js",
182182
"highlight.js",
183+
"sw.js",
183184
"tomorrow-night.css",
184185
"highlight.css",
185186
"ayu-highlight.css",

src/theme/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ workbox.routing.registerRoute(
3030

3131
// Local resources
3232
workbox.routing.registerRoute(
33-
new RegExp(".woff2?|.ttf|.css|.js|.json"),
33+
new RegExp(".woff2?|.ttf|.css|.js|.json|.png|.svg"),
3434
staleWhileRevalidate
3535
);
3636

0 commit comments

Comments
 (0)