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

@@ -95,8 +95,8 @@ const routes: Routes = [
},
{
path: 'lightning',
data: { networks: ['bitcoin'] },
loadChildren: () => import ('./lightning-graphs.module').then(m => m.LightningGraphsModule)
data: { preload: true, networks: ['bitcoin'] },
loadChildren: () => import ('./lightning-graphs.module').then(m => m.LightningGraphsModule),
},
{
path: '',