diff --git a/aio/ngsw-manifest.json b/aio/ngsw-manifest.json index 55a2a0ae74..f69bbd6848 100644 --- a/aio/ngsw-manifest.json +++ b/aio/ngsw-manifest.json @@ -1,4 +1,14 @@ { + "external": { + "urls": [ + {"url": "https://fonts.googleapis.com/css?family=Droid+Sans+Mono"}, + {"url": "https://fonts.gstatic.com/s/droidsansmono/v7/ns-m2xQYezAtqh7ai59hJYdJ2JT0J65PSe7wdxAnx_I.woff2"}, + {"url": "https://fonts.googleapis.com/icon?family=Material+Icons"}, + {"url": "https://fonts.gstatic.com/s/materialicons/v22/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2"}, + {"url": "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"}, + {"url": "https://unpkg.com/lunr@0.7.2/lunr.min.js"} + ] + }, "static.ignore": [ "\\.js\\.map$", "^/assets/images/.*/unused/", diff --git a/aio/src/app/search/search-worker.js b/aio/src/app/search/search-worker.js index 1e5c5d3b04..293da377f3 100644 --- a/aio/src/app/search/search-worker.js +++ b/aio/src/app/search/search-worker.js @@ -5,7 +5,8 @@ var SEARCH_TERMS_URL = '/content/docs/app/search-data.json'; -importScripts('https://unpkg.com/lunr@0.7.2'); +// NOTE: This needs to be kept in sync with `ngsw-manifest.json`. +importScripts('https://unpkg.com/lunr@0.7.2/lunr.min.js'); var index = createIndex(); var pages = {}; diff --git a/aio/src/index.html b/aio/src/index.html index 2c03860e5f..ef6cac7af1 100644 --- a/aio/src/index.html +++ b/aio/src/index.html @@ -20,9 +20,11 @@ + +