From adee5377c9a5f2eb3732fe46b2e9f869022782f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Thu, 27 Sep 2018 10:50:25 -0300 Subject: [PATCH] Mapping /admin as /admin.html in devMode --- config/webpackDevServer.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/webpackDevServer.config.ts b/config/webpackDevServer.config.ts index a5638641e..0638973f4 100644 --- a/config/webpackDevServer.config.ts +++ b/config/webpackDevServer.config.ts @@ -59,9 +59,8 @@ export default function({ }, overlay: false, historyApiFallback: { - // Paths with dots should still use the history fallback. - // See https://github.com/facebookincubator/create-react-app/issues/387. disableDotRule: true, + rewrites: [{ from: /^\/admin/, to: "/admin.html" }], }, public: allowedHost, index: "embed.html",