diff --git a/lib/index.js b/lib/index.js index b760a15..77a8f4c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,10 +1,10 @@ const path = require("path"); module.exports = { - overrideWebpackConfig: ({ webpackConfig, context: { env, paths } }) => { + overrideWebpackConfig: ({ webpackConfig, pluginOptions, context: { env, paths } }) => { if (env === "production") { try { - const workboxConfig = require(path.join( + const workboxConfig = pluginOptions || require(path.join( paths.appPath, "workbox.config.js" ));