diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-12-23 02:32:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 02:32:12 +0300 |
commit | b4daf3f2aa5be8ee88a0c6e3d717121a92eecce0 (patch) | |
tree | fadbe371b876c20bbc7df1a1e283acda5477023d /build | |
parent | 5ef2443cd990132cd342374dd2e5c49457e4a727 (diff) |
build-svgs.js: no need to use a function in `replaceWith()` (#579)
Update build-svgs.js
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/build-svgs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js index 2a09c5423..04525e2dd 100644 --- a/build/build-svgs.js +++ b/build/build-svgs.js @@ -48,7 +48,7 @@ const processFile = (file, config) => new Promise((resolve, reject) => { const $ = cheerio.load(result.data) const $svg = $('svg') - $svg.replaceWith(() => $('<svg>').append($(this).html())) + $svg.replaceWith($('<svg>').append($(this).html())) for (const [attribute, value] of Object.entries(svgAttributes)) { $svg.removeAttr(attribute) |