diff --git a/src/type/copy.js b/src/type/copy.js index 5eb7bb0..06afe39 100644 --- a/src/type/copy.js +++ b/src/type/copy.js @@ -72,7 +72,7 @@ module.exports = function processCopy(asset, dir, options, decl, warn, result, a const assetRelativePath = options.useHash ? getHashName(file, options.hashOptions) - : asset.relativePath; + : path.basename(file.path); const targetDir = getTargetDir(dir); const newAssetBaseDir = getAssetsPath(targetDir, options.assetsPath);