Merge pull request #2329 from ilyamkin/patch-1

Allow paths with dots
This commit is contained in:
Ivan Shmidt
2020-09-09 11:26:56 +02:00
committed by GitHub
+5 -1
View File
@@ -42,7 +42,11 @@ export async function serveBundle(options: ServeOptions) {
contentBase: paths.targetPublic,
contentBasePublicPath: config.output?.publicPath,
publicPath: config.output?.publicPath,
historyApiFallback: true,
historyApiFallback: {
// Paths with dots should still use the history fallback.
// See https://github.com/facebookincubator/create-react-app/issues/387.
disableDotRule: true,
},
clientLogLevel: 'warning',
stats: 'errors-warnings',
https: url.protocol === 'https:',