From 087027cde5f40da3d1bc5cb6353eb9821461a36b Mon Sep 17 00:00:00 2001 From: Ben Michaud Date: Tue, 28 Jun 2022 11:43:31 +0700 Subject: [PATCH] copy & useHash: false Never applied https://github.com/postcss/postcss-url/pull/146 --- src/type/copy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);