Created
          July 20, 2022 18:08 
        
      - 
      
 - 
        
Save riapacheco/54a235f129fa93d3f8609e6fb109fb03 to your computer and use it in GitHub Desktop.  
    Google Fonts Pre-Load
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // ACTUAL FILE: ngsw-config.json | |
| { | |
| "$schema": "./node_modules/@angular/service-worker/config/schema.json", | |
| "index": "/index.html", | |
| "assetGroups": [ | |
| { | |
| "name": "app", | |
| "installMode": "prefetch", | |
| "resources": { | |
| "files": [ | |
| "/favicon.ico", | |
| "/index.html", | |
| "/manifest.webmanifest", | |
| "/*.css", | |
| "/*.js" | |
| ], | |
| "urls": [ | |
| "https://fonts.googleapis.com/**", // Fonts preload here | |
| "https://fonts.gstatic.com/**" | |
| ] | |
| } | |
| }, | |
| { | |
| "name": "assets", | |
| "installMode": "lazy", | |
| "updateMode": "prefetch", | |
| "resources": { | |
| "files": [ | |
| "/assets/**", | |
| "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" | |
| ] | |
| } | |
| } | |
| ] | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment