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