mirror of
https://github.com/He4eT/oddsquat.git
synced 2026-05-04 20:37:22 +00:00
tools: typography: use es-modules
This commit is contained in:
parent
a688b234ab
commit
61156c55a2
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
const Typography = require('typography')
|
import Typography from 'typography'
|
||||||
const fs = require('fs')
|
import { writeFile } from 'fs'
|
||||||
|
|
||||||
const TYPOGRAPHY_CSS_FILEPATH =
|
const TYPOGRAPHY_CSS_FILEPATH =
|
||||||
'./src/assets/css/typography.css'
|
'./src/assets/css/typography.css'
|
||||||
|
|
@ -21,7 +21,7 @@ const typography = new Typography({
|
||||||
bodyColor: 'hsl(0, 0%, 0%, 0.8)'
|
bodyColor: 'hsl(0, 0%, 0%, 0.8)'
|
||||||
})
|
})
|
||||||
|
|
||||||
void fs.writeFile(
|
void writeFile(
|
||||||
TYPOGRAPHY_CSS_FILEPATH,
|
TYPOGRAPHY_CSS_FILEPATH,
|
||||||
typography.toString(),
|
typography.toString(),
|
||||||
err => err
|
err => err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue