Created
          October 2, 2017 07:55 
        
      - 
      
- 
        Save osvaldasvalutis/7215fe4d369a4783fa6ebef0db8fb1d9 to your computer and use it in GitHub Desktop. 
    Service Worker for Middleman based websites – https://medium.com/kollegorna/service-worker-for-middleman-based-websites-7a4b7c6b038e
  
        
  
    
      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
    
  
  
    
  | const criticalResources = [ | |
| '<%= asset_path :css, "/#{app.config[:css_dir]}/application" %>', | |
| '<%= asset_path :js, "/#{app.config[:js_dir]}/application" %>', | |
| '<%= asset_path :images, "logo.svg" %>' | |
| ]; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment