Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Default non-matching assets to root (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbate authored and paulmillr committed Jun 15, 2016
1 parent 9b31e4e commit b8e2f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs_utils/asset.js
Expand Up @@ -35,7 +35,7 @@ const replaceExt = (rel, compiler) => {
// A static file that shall be copied to public directory.
class Asset {
constructor(path, publicPath, assetsConvention) {
const directory = getAssetDirectory(path, assetsConvention);
const directory = getAssetDirectory(path, assetsConvention) || '';
const rel = sysPath.relative(directory, path);
const destinationPath = sysPath.join(publicPath, rel);
this.path = path;
Expand Down

0 comments on commit b8e2f46

Please sign in to comment.