diff --git a/src/index.ts b/src/index.ts index 16548140..508e9602 100644 --- a/src/index.ts +++ b/src/index.ts @@ -372,7 +372,9 @@ const withPWAInit = ( ); } } - + if (typeof nextConfig.webpack === "function") { + return nextConfig.webpack(config, options); + } return config; }, } as NextConfig),