From 61156c55a2c9adf28a904efd596706beae5740ac Mon Sep 17 00:00:00 2001 From: He4eT Date: Sat, 9 Dec 2023 09:28:56 +0100 Subject: [PATCH] tools: typography: use es-modules --- tools/typography.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/typography.js b/tools/typography.js index 6b4e760..5ae541f 100755 --- a/tools/typography.js +++ b/tools/typography.js @@ -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