Ajout des source maps en production

Les source maps étaient déjà générées par le configuration Webpack de
prod mais étaient bloquées par le service worker.

Fixes #684
pull/776/head
Maxime Quandalle 2019-11-05 13:31:51 +01:00
parent 432044190f
commit 46f8329c93
1 changed files with 3 additions and 5 deletions

View File

@ -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')
})
]