Skip to content

Commit

Permalink
update service-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
gongzhen.gz committed Jul 14, 2019
1 parent 4781c94 commit 1f98efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
loader: 'url-loader',
options: {
limit: 10240,
name: path.normalize('assets/[name].[ext]')
name: path.normalize('asset/[name].[ext]')
}
}
]
Expand All @@ -40,7 +40,7 @@ module.exports = {
loader: 'url-loader',
options: {
limit: 10240,
name: path.normalize('assets/[name].[ext]')
name: path.normalize('asset/[name].[ext]')
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

// Update cache names any time any of the cached files change.
const ASSET_CACHE_NAME = 'asset-cache-v2';
const ASSET_CACHE_NAME = 'asset-cache-v3';
const DATA_CACHE_NAME = 'data-cache-v1';

// Add list of files to cache here.
Expand All @@ -15,7 +15,7 @@ const FILES_TO_CACHE = [
'/main.8252d8c61f50a9c82065.css',
'/vendor.8455524c.js',
'/favicon.png',
'/theme.png',
'/assets/theme.png'
];

self.addEventListener('install', (evt) => {
Expand Down

0 comments on commit 1f98efe

Please sign in to comment.