Skip to content

Commit

Permalink
Allow absolute file paths (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Baker authored and TooTallNate committed Jul 10, 2019
1 parent 7b39dc8 commit 51240b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/serve.js
Expand Up @@ -262,7 +262,7 @@ const loadConfig = async (cwd, entry, args) => {
const config = {};

for (const file of files) {
const location = path.join(entry, file);
const location = path.resolve(entry, file);
let content = null;

try {
Expand Down Expand Up @@ -313,7 +313,7 @@ const loadConfig = async (cwd, entry, args) => {

if (entry) {
const {public} = config;
config.public = path.relative(cwd, (public ? path.join(entry, public) : entry));
config.public = path.relative(cwd, (public ? path.resolve(entry, public) : entry));
}

if (Object.keys(config).length !== 0) {
Expand Down

0 comments on commit 51240b7

Please sign in to comment.