Use HtmlWebpackPlugin for eployments

This commit is contained in:
Jori Lallo
2016-05-23 20:35:19 -07:00
parent 9506dcbca6
commit 67ca3c2ae2
7 changed files with 21 additions and 17 deletions

View File

@ -31,7 +31,7 @@ if (process.env.NODE_ENV === 'production') {
}
router.get('*', async (ctx) => {
const stats = await sendfile(ctx, path.join(__dirname, './static/dev.html'));
const stats = await sendfile(ctx, path.join(__dirname, '../dist/index.html'));
if (!ctx.status) ctx.throw(httpErrors.NotFound());
});