When strategy is set to inject, swDest variable is not overwritten for link replacement logic, which results in code trying to locate default file. The following exception is thrown:
sw-cache: Service worker injection failed: Error: No files match the pattern: path-to-your-file/sw.js
When strategy is set to
inject
, swDest variable is not overwritten for link replacement logic, which results in code trying to locate default file. The following exception is thrown:Suggested fix: