diff --git a/lib/sw-precache.js b/lib/sw-precache.js index 297ab59..28eb389 100644 --- a/lib/sw-precache.js +++ b/lib/sw-precache.js @@ -181,7 +181,7 @@ function generate(params, callback) { var runtimeCaching; var swToolboxCode; if (params.runtimeCaching) { - var pathToSWToolbox = require.resolve('sw-toolbox/sw-toolbox.js'); + var pathToSWToolbox = require.resolve('sw-toolbox/lib/sw-toolbox.js'); swToolboxCode = fs.readFileSync(pathToSWToolbox, 'utf8') .replace('//# sourceMappingURL=sw-toolbox.map.json', '');