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

Commit 87cf804

Browse files
committed
chore(): use sendFile instead of sendfile to remove express dep warning.
1 parent d1e1949 commit 87cf804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dev-server/http-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function createHttpServer(config: ServeConfig): express.Application {
2626
app.use('/', express.static(config.wwwDir));
2727
app.use(`/${LOGGER_DIR}`, express.static(path.join(__dirname, '..', '..', 'bin'), { maxAge: 31536000 }));
2828
app.get(IONIC_LAB_URL, (req, res) =>
29-
res.sendfile('ionic-lab.html', {root: path.join(__dirname, '..', '..', 'bin')}));
29+
res.sendFile('ionic-lab.html', {root: path.join(__dirname, '..', '..', 'bin')}));
3030
app.get('/cordova.js', serveCordovaJS);
3131

3232
if (config.useProxy) {

0 commit comments

Comments
 (0)