feat: indicate original extension in tmp filename

This commit is contained in:
Marton Lederer 2021-02-20 11:37:43 +01:00
parent 1e7ec7d881
commit 6066b58c3d
No known key found for this signature in database
GPG Key ID: 9B7FD44832ADFE95

View File

@ -50,7 +50,7 @@ const postCSSPlugin = ({
tmpDir = path.resolve(tmpDirPath, sourceRelDir),
tmpFilePath = path.resolve(
tmpDir,
`${sourceBaseName}-tmp-${Date.now()}${
`${sourceBaseName}-tmp-${Date.now()}-${sourceExt.replace(".", "")}${
isModule ? ".module" : ""
}.css`
);