Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-11-03 17:43:14 +0300
committerGitHub <noreply@github.com>2020-11-03 17:43:14 +0300
commit1257eb9dc3fb07a8e30bd93594c92dcba42a9751 (patch)
treef025ff52642e571cdefafd0c3028d5c11aadccec /build
parent560a9b1cf6843b2d8a33c462438edd2cf598ef27 (diff)
build-svgs.js: fix UnhandledPromiseRejectionWarning (#482)
Diffstat (limited to 'build')
-rw-r--r--build/build-svgs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js
index 60ffa62b1..b8ff0002c 100644
--- a/build/build-svgs.js
+++ b/build/build-svgs.js
@@ -70,7 +70,7 @@ const processFile = (file, config) => new Promise((resolve, reject) => {
$(svg).attr('class', `bi bi-${path.basename(file, '.svg')}`)
- fs.writeFile(file, $(svg), 'utf8')
+ fs.writeFile(file, $(svg).toString(), 'utf8')
.then(() => {
console.log(`- ${path.basename(file, '.svg')}`)
resolve()