From 6066b58c3d378e4985060c6956c294ad55a74a3b Mon Sep 17 00:00:00 2001 From: Marton Lederer Date: Sat, 20 Feb 2021 11:37:43 +0100 Subject: [PATCH] feat: indicate original extension in tmp filename --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b498e3e..a567c26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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` );