Skip to content

Commit

Permalink
add default filename when using through api
Browse files Browse the repository at this point in the history
  • Loading branch information
hswolff committed Feb 5, 2015
1 parent 741bd54 commit a7d6b2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ var historyApiFallback = require("connect-history-api-fallback");
function Server(compiler, options) {
// Default options
if(!options) options = {};
options.filename = options.filename || 'bundle.js';

this.hot = options.hot;
this.headers = options.headers;

Expand Down

0 comments on commit a7d6b2c

Please sign in to comment.