Adjust webpack chunk preloading strategy

This commit is contained in:
Mononaut
2023-11-10 04:58:07 +00:00
parent db8ed5b705
commit af7b9c0dc8
6 changed files with 23 additions and 8 deletions

View File

@@ -31,7 +31,8 @@ const routes: Routes = [
},
{
path: 'lightning',
loadChildren: () => import('./lightning/lightning-previews.module').then(m => m.LightningPreviewsModule)
loadChildren: () => import('./lightning/lightning-previews.module').then(m => m.LightningPreviewsModule),
data: { preload: true },
},
],
}