Skip to content

Commit

Permalink
Fixing windows ng-serve (again).
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Mar 29, 2019
1 parent 2845e29 commit e816429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/builders/dev-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export class SingleSpaDevServer extends DevServerBuilder {

return webpackMerge.smart(devServerConfig, {
// @ts-ignore
contentBase: path.resolve(root, projectRoot.serveDirectory || `..${path.sep}`),
contentBase: path.resolve(root, projectRoot.serveDirectory || '../'),
historyApiFallback: true,
publicPath: root.slice(root.lastIndexOf(path.sep)) + path.sep + options.outputPath,
publicPath: root.slice(root.lastIndexOf('/')) + '/' + options.outputPath,
})
}
}
Expand Down

0 comments on commit e816429

Please sign in to comment.