Skip to content

Commit a212d8f

Browse files
filipesilvahansl
authored andcommitted
fix(@angular-devkit/build-webpack): use basename on fallback as well
1 parent ee5d489 commit a212d8f

File tree

1 file changed

+1
-3
lines changed
  • packages/angular_devkit/build_webpack/src/dev-server

1 file changed

+1
-3
lines changed

packages/angular_devkit/build_webpack/src/dev-server/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
234234
const config: WebpackDevServerConfigurationOptions = {
235235
headers: { 'Access-Control-Allow-Origin': '*' },
236236
historyApiFallback: {
237-
index: `${servePath}/${
238-
path.relative(projectRoot, path.resolve(root, browserOptions.index))
239-
}`,
237+
index: `${servePath}/${path.basename(browserOptions.index)}`,
240238
disableDotRule: true,
241239
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml'],
242240
},

0 commit comments

Comments
 (0)