Inline shared UI styles for Git consumers
Lint / Lint (Node/Svelte) (push) Successful in 14s
Lint / Lint (Go) (push) Successful in 15s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 12s
Tests / Test (Go) (push) Successful in 15s
Tests / Test (Python) (push) Successful in 9s
Lint / Lint (Node/Svelte) (push) Successful in 14s
Lint / Lint (Go) (push) Successful in 15s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 12s
Tests / Test (Go) (push) Successful in 15s
Tests / Test (Python) (push) Successful in 9s
This commit is contained in:
1 parent
44c05f5a27
commit
d134d6626a
2 files changed
+5
-2
No files matched your search
@@ -2,7 +2,11 @@ import { readFile, writeFile } from 'node:fs/promises';
|
||||
|
||||
const source = await readFile(new URL('../packages/web-ui/dist/styles.css', import.meta.url), 'utf8');
|
||||
const tokenImport = "@import '@gabriel20xx/design-tokens/theme.css';";
|
||||
const componentStyles = source.replace(`${tokenImport}\n`, '');
|
||||
const componentStyles = source
|
||||
.split(/\r?\n/)
|
||||
.filter((line) => line.trim() !== tokenImport)
|
||||
.join('\n')
|
||||
.trimStart();
|
||||
|
||||
await writeFile(
|
||||
new URL('../shared-styles.css', import.meta.url),
|
||||
|
||||
Reference in new issue
Block a user