I try to load my Modules in lazy loading way.
so i i did the next in my routes.ts file:
export const LoginRoutes: Route = [
when i run “gulp build.dev” to build the project it works great!!! the problem is when i run “gulp build.prod“!! in the end of the build process i get only one app.js main file and when i try to load my project to browser and reach login page it throw an error (it doesn’t recognize it)
how can i make this lazy loading thing to work in production???