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 #684pull/776/head
parent
432044190f
commit
46f8329c93
|
@ -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')
|
||||
})
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue