From fbb6fcc73fac804a3a07c6882e064ebe8bbefa2b Mon Sep 17 00:00:00 2001 From: John Agan Date: Tue, 18 Aug 2020 20:21:52 -0700 Subject: [PATCH] fix copy with no hash --- src/type/copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);