Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
only check default entry
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 15, 2017
1 parent 366ead6 commit d76930e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function start(cliOptions) { // eslint-disable-line complexity
}
}, userConfig, cliOptions)

if (typeof options.entry === 'string' && !fs.existsSync(options.entry)) {
if (options.entry === 'index.js' && !fs.existsSync(options.entry)) {
logger.fatal(`Entry file ${chalk.yellow(options.entry)} does not exist, did you forget to create one?`)
}

Expand Down

0 comments on commit d76930e

Please sign in to comment.