You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 05e6a2f
Browse filesBrowse the repository at this point in the historyBrowse files
* Resolves the PWA configuration based on the provided options and resolver options.
230
247
*
231
248
* This function will search for the PWA configuration file if the `path` option is not provided,
232
249
* and will merge the loaded configuration with the provided options.
233
250
*
251
+
* When using `inject-manifest`, the `resolverOptions.isWrongInjectManifest` callback must resolve if the strategy is wrong, the implementation should be:
252
+
* - if the service worker with `.ts` or `.mts` extension, then, it is `build-sw` and not `inject-manifest` strategy: must return true
253
+
* - if the service worker outside public dir, then, it is `build-sw` and not `inject-manifest` strategy: must return true
254
+
* - otherwise must return false
255
+
*
234
256
* @param pwaOptions The PWA options to resolve.
235
257
* @param resolverOptions The resolver options containing environment information and callbacks.
236
258
* @returns The resolved PWA options.
@@ -240,19 +262,7 @@ export async function resolvePwaConfiguration<
0 commit comments