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')
|
||||
const fs = require('fs')
|
||||
import Typography from 'typography'
|
||||
import { writeFile } from 'fs'
|
||||
|
||||
const TYPOGRAPHY_CSS_FILEPATH =
|
||||
'./src/assets/css/typography.css'
|
||||
|
|
@ -21,7 +21,7 @@ const typography = new Typography({
|
|||
bodyColor: 'hsl(0, 0%, 0%, 0.8)'
|
||||
})
|
||||
|
||||
void fs.writeFile(
|
||||
void writeFile(
|
||||
TYPOGRAPHY_CSS_FILEPATH,
|
||||
typography.toString(),
|
||||
err => err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue