Skip to content

Commit bcabf84

Browse files
committed
add default path in assets cache
1 parent dae40f0 commit bcabf84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build.serviceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const generateSwConfigFile = () => {
4848
return new Promise((resolve, reject) => {
4949
var swConfigFilename = 'sw_config_' + self.assetCacheHash + '.js';
5050
fs.outputFile( (dirPath + "/" + swConfigFilename), 'var config = ' + JSON.stringify({
51-
assets: self.assetFiles,
51+
assets: self.assetFiles.concat('/'),
5252
paths:{api:config.wpDomain + 'wp-json', remote:config.wpDomain, client: config.client},
5353
cacheNames:{assetCache:`vwpCacheAsset-${self.assetCacheHash}`, remoteCache:`vwpCacheRemote-${self.assetCacheHash}`}
5454
}), () => {

0 commit comments

Comments
 (0)