0

I'm trying to remove two prefixes from my service-worker file but the stripPrefixMulti option doesn't seem to do the trick. I have :

./dist
./src/assets

I want to strip :

./
src/

and replace them with

/

So in my sw.config I have :

stripPrefix : './',  // tried moving this to PrefixMulti as 'root': './'
stripPrefixMulti: {
  'src/': 'src/'
},
replacePrefix: '/'

Any help would be appreciated.

wmik
  • 734
  • 10
  • 23
  • Shouldn't your stripPrefixMulti look like `{ 'src/' : '' }` ? Maybe you can also post your grunt / gulp task and the whole sw-precache config. And explain how your file structure looks like before the build and how it should look like after the build. – Stef Chäser Jul 02 '17 at 15:23
  • Your solution worked. Thank you. – wmik Jul 04 '17 at 13:25

0 Answers0