Skip to content

Commit

Permalink
Fix service-worker-precache config (#114)
Browse files Browse the repository at this point in the history
The polymer-build don't read the sw-precache-config.js
  • Loading branch information
abdonrd authored and jorgecasar committed Oct 5, 2016
1 parent a339dd4 commit 695567e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ global.config = {
// Service Worker precache options based on
// https://github.com/GoogleChrome/sw-precache#options-parameter
swPrecacheConfig: {
navigateFallback: '/index.html'
staticFileGlobs: [
'/bower_components/webcomponentsjs/webcomponents-lite.min.js',
'/images/**/*',
'/index.html',
'/manifest.json'
],
navigateFallback: '/index.html',
navigateFallbackWhitelist: [ /^\/[^\_]+\/?/ ]
}
};

Expand Down
9 changes: 0 additions & 9 deletions sw-precache-config.js

This file was deleted.

0 comments on commit 695567e

Please sign in to comment.