Bugfix: Do not try to normalize absolute paths

This commit is contained in:
Cássio Zen 2017-01-19 13:31:44 -02:00
parent b64259cb5a
commit ef9f499b42

View File

@ -6,7 +6,7 @@ export function resolvePath(path, basePath) { // eslint-disable-line
if (!path) return null;
// It's an absolute path.
if (absolutePath.test(path)) return normalizePath(path);
if (absolutePath.test(path)) return path;
if (path.indexOf('/') === -1) {
// It's a single file name, no directories. Prepend public folder