forked from evgeny-nadymov/telegram-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sw-config.js
22 lines (22 loc) · 814 Bytes
/
sw-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
swFilePath: './build/service-worker.js',
cacheId: 'sw-precache-webpack-plugin',
dontCacheBustUrlsMatching: /\.\w{8}\./,
navigateFallback: '/index.html',
navigateFallbackWhitelist: [ /^(?!\/__).*/ ],
staticFileGlobsIgnorePatterns: [ /\.map$/, /asset-manifest\.json$/ ],
staticFileGlobs:
[ './build/**/**.html',
'./build/static/js/*.js',
'./build/static/css/*.css',
'./build/static/media/**',
'./build/*.wasm',
'./build/*.mem',
'./build/*.worker.js',
'./build/tdweb.js'],
stripPrefix: './build',
replacePrefix: '/telegram-react',
maximumFileSizeToCacheInBytes: 31457280,
importScripts: ['./custom-service-worker.js'],
ignoreUrlParametersMatching: [/./]
};