I have an angular application with a small routing file like following
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: 'home',
loadChildren: () => import('./pages/common/home/home.module').then( m => m.HomePageModule)
},
{
path: 'contact',
loadChildren: () => import('./pages/contact/contact.module').then( m => m.ContactPageModule)
},
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule { }
Is there a mean to generate file sitemap.xml containing both url contact and home when building the application ?