diff --git a/source/webpack.prod.js b/source/webpack.prod.js index 41e70f647..d31930698 100644 --- a/source/webpack.prod.js +++ b/source/webpack.prod.js @@ -87,6 +87,8 @@ module.exports = { navigateFallback: '/fallback', navigateFallbackWhitelist: [/^\/[^_]+$/], // fallback for anything that doesn't start with navigateFallbackBlacklist: [ + // The service worker should ignore source maps generated by Webpack + /.*.map$/, /.*\?s=.*$/, /^\/stats/, /^\/robots\.txt$/, @@ -113,11 +115,7 @@ module.exports = { new PrerenderSPAPlugin({ ...prerenderConfig(), outputDir: path.resolve('dist', 'prerender', 'mon-entreprise'), - routes: [ - '/', - '/simulateurs/salariƩ', - '/iframes/simulateur-embauche' - ], + routes: ['/', '/simulateurs/salariƩ', '/iframes/simulateur-embauche'], indexPath: path.resolve('dist', 'mon-entreprise.html') }) ]