diff options
Diffstat (limited to 'build/generate-images.js')
-rwxr-xr-x | build/generate-images.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/generate-images.js b/build/generate-images.js index d82f21564f..b6616810a7 100755 --- a/build/generate-images.js +++ b/build/generate-images.js @@ -1,10 +1,11 @@ import imageminZopfli from 'imagemin-zopfli'; import {optimize, extendDefaultPlugins} from 'svgo'; import {fabric} from 'fabric'; -import {readFile, writeFile} from 'fs/promises'; +import fs from 'fs'; import {resolve, dirname} from 'path'; import {fileURLToPath} from 'url'; +const {readFile, writeFile} = fs.promises; const __dirname = dirname(fileURLToPath(import.meta.url)); const logoFile = resolve(__dirname, '../assets/logo.svg'); |