-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
OS?
Mac OS Sierra
Versions.
@angular/cli: 1.0.0-rc.1
node: 7.4.0
os: darwin x64
@angular/common: 4.0.0-rc.2
@angular/compiler: 4.0.0-rc.2
@angular/core: 4.0.0-rc.2
@angular/forms: 4.0.0-rc.2
@angular/http: 4.0.0-rc.2
@angular/platform-browser: 4.0.0-rc.2
@angular/platform-browser-dynamic: 4.0.0-rc.2
@angular/router: 4.0.0-rc.2
Repro steps.
At first, I use ng build --prod --watch=true
with correct path for lazy module, but I can't see any lazy route chunks
const appRoutes: Routes = [
{
path: 'admin', component: LayoutComponent, canActivate: [AuthGuardService],
children: [
{path: 'bike', loadChildren: 'app/bike/bike.module#BikeModule',},
]},
];
Hash: f9d9290bb80836ad5ad2
Time: 24703ms
chunk {0} polyfills.062e66d5506f88fa9a04.bundle.js (polyfills) 200 kB {4} [initial] [rendered]
chunk {1} main.1b88c492928b4fd2fc9d.bundle.js (main) 120 kB {3} [initial] [rendered]
chunk {2} styles.9f6e9dbf53f7c0872d3c.bundle.css (styles) 175 bytes {4} [initial] [rendered]
chunk {3} vendor.ef6a6d2029727798afd2.bundle.js (vendor) 2.02 MB [initial] [rendered]
chunk {4} inline.0605372a06e6490f08a6.bundle.js (inline) 0 bytes [entry] [rendered]
then I use an error path like this: ./app/bike/bike.module#BikeModule
finally I change back: app/bike/bike.module#BikeModule
I see the lazy route chunk output:
Hash: c192e290b753f07c3589
Time: 11943ms
chunk {0} polyfills.062e66d5506f88fa9a04.bundle.js (polyfills) 200 kB {4} [initial]
chunk {1} main.15453f3e2945e4eade17.bundle.js (main) 120 kB {3} [initial] [rendered]
chunk {2} styles.9f6e9dbf53f7c0872d3c.bundle.css (styles) 175 bytes {4} [initial]
chunk {3} vendor.be4ca73bd2f535511b0a.bundle.js (vendor) 2.02 MB [initial] [rendered]
chunk {4} inline.206e421169df75a8322e.bundle.js (inline) 0 bytes [entry] [rendered]
chunk {5} 5.00405610a134f55380e0.chunk.js 11.4 kB {1} [rendered]
doender, ecsnavarretemit, exequiel09, phillipcurl, michaelonubogu and 6 more
Metadata
Metadata
Assignees
Labels
No labels