Skip to content

Commit

Permalink
Removing the boolean variable. And using the options variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuman committed Dec 16, 2017
1 parent 9f1362b commit 08f1c61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function middleware(bundler) {
function sendIndex() {
// If the main asset is an HTML file, serve it
if (bundler.mainAsset.type === 'html') {
req.url = `/${bundler.mainAsset.generateBundleName(true)}`;
req.url = `/${bundler.mainAsset.generateBundleName(
bundler.options.mainFile
)}`;
serve(req, res, send404);
} else {
send404();
Expand Down

0 comments on commit 08f1c61

Please sign in to comment.