diff --git a/bin/serve.js b/bin/serve.js index 901537cc..7d2ec2be 100755 --- a/bin/serve.js +++ b/bin/serve.js @@ -348,7 +348,7 @@ const loadConfig = async (cwd, entry, args) => { } const cwd = process.cwd(); - const entry = args._.length > 0 ? path.join(cwd, args._[0]) : cwd; + const entry = args._.length > 0 ? path.resolve(args._[0]) : cwd; const config = await loadConfig(cwd, entry, args);