feat: use absolute path for resolving temporary css files

This commit is contained in:
Marton Lederer 2021-02-20 15:31:10 +01:00
parent 9d80e9abe0
commit ff4d4a90b0
No known key found for this signature in database
GPG Key ID: 9B7FD44832ADFE95
2 changed files with 7 additions and 4 deletions

View File

@ -133,10 +133,9 @@ const postCSSPlugin = ({
return {
resolveDir,
contents: `import "${args.path.replace(
resolveDir,
"."
)}"; export default ${JSON.stringify(mod.map)};`
contents: `import "${args.path}";\nexport default ${JSON.stringify(
mod && mod.map ? mod.map : {}
)};`
};
}
);

View File

@ -0,0 +1,4 @@
.Wallet
text-align: left
justify-content: space-around
font-size: 2em