Skip to content

Commit

Permalink
fix(@angular/cli): enable dev server history fallback in ejected config
Browse files Browse the repository at this point in the history
  • Loading branch information
martzcodes authored and hansl committed Apr 11, 2017
1 parent e7e43a5 commit 2a903d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@angular/cli/tasks/eject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ class JsonWebpackSerializer {
serialize(config: any): string {
// config = Object.assign({}, config);
config['plugins'] = this._pluginsReplacer(config['plugins']);
// Routes using PathLocationStrategy break without this.
config['devServer'] = {
'historyApiFallback': true
};
config['resolve'] = this._resolveReplacer(config['resolve']);
config['resolveLoader'] = this._resolveReplacer(config['resolveLoader']);
config['entry'] = this._entryReplacer(config['entry']);
Expand Down

0 comments on commit 2a903d2

Please sign in to comment.