Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit a278d3b

Browse files
committed
fix(dev-server): Fix ion-dev css/js when loaded with a path
1 parent ce3b8dd commit a278d3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dev-server/http-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createHttpServer(config: ServeConfig): express.Application {
4646
app.get('/plugins/*', servePlatformResource);
4747

4848
// Fallback route - send to index.html to allow deeplinker to handle path.
49-
app.get('*', serveIndex);
49+
app.use(serveIndex);
5050

5151
if (config.useProxy) {
5252
setupProxies(app);

src/dev-server/injector.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function getDevLoggerScript(rootDir: string, notifyOnConsoleLog: boolean, notifi
3838
return `
3939
${LOGGER_HEADER}
4040
<script>var IonicDevServerConfig=${ionDevServer};</script>
41-
<link href="${LOGGER_DIR}/ion-dev.css?v=${appScriptsVersion}" rel="stylesheet">
42-
<script src="${LOGGER_DIR}/ion-dev.js?v=${appScriptsVersion}"></script>
41+
<link href="/${LOGGER_DIR}/ion-dev.css?v=${appScriptsVersion}" rel="stylesheet">
42+
<script src="/${LOGGER_DIR}/ion-dev.js?v=${appScriptsVersion}"></script>
4343
`;
4444
}

0 commit comments

Comments
 (0)