diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-06 21:48:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-06 21:48:15 +0200 |
commit | 04de542abd940f9d2ca213fba3c68580c6c9b78a (patch) | |
tree | 13549c2d25883ca6a215536fff319f761d3786bf /client/src/app/app-routing.module.ts | |
parent | a8b5de6c670eb19ffbe40726bb60ef1d1dbc10dd (diff) | |
download | PeerTube-04de542abd940f9d2ca213fba3c68580c6c9b78a.tar.gz PeerTube-04de542abd940f9d2ca213fba3c68580c6c9b78a.tar.zst PeerTube-04de542abd940f9d2ca213fba3c68580c6c9b78a.zip |
Update webpack config
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r-- | client/src/app/app-routing.module.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 8036c52e6..191ae6974 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { Routes, RouterModule } from '@angular/router' | 2 | import { Routes, RouterModule, PreloadAllModules } from '@angular/router' |
3 | 3 | ||
4 | const routes: Routes = [ | 4 | const routes: Routes = [ |
5 | { | 5 | { |
@@ -14,7 +14,12 @@ const routes: Routes = [ | |||
14 | ] | 14 | ] |
15 | 15 | ||
16 | @NgModule({ | 16 | @NgModule({ |
17 | imports: [ RouterModule.forRoot(routes) ], | 17 | imports: [ |
18 | RouterModule.forRoot(routes, { | ||
19 | useHash: Boolean(history.pushState) === false, | ||
20 | preloadingStrategy: PreloadAllModules | ||
21 | }) | ||
22 | ], | ||
18 | exports: [ RouterModule ] | 23 | exports: [ RouterModule ] |
19 | }) | 24 | }) |
20 | export class AppRoutingModule {} | 25 | export class AppRoutingModule {} |