diff --git a/blocks/CloudImageEditor/src/svg-sprite.js b/blocks/CloudImageEditor/src/svg-sprite.js index 000b16a0..832ac3c9 100644 --- a/blocks/CloudImageEditor/src/svg-sprite.js +++ b/blocks/CloudImageEditor/src/svg-sprite.js @@ -1 +1 @@ -export default ""; +export default ""; diff --git a/blocks/themes/lr-basic/svg-sprite.js b/blocks/themes/lr-basic/svg-sprite.js index 2dddbc87..f67fa0a4 100644 --- a/blocks/themes/lr-basic/svg-sprite.js +++ b/blocks/themes/lr-basic/svg-sprite.js @@ -1 +1 @@ -export default ""; +export default ""; diff --git a/build-svg-sprite.js b/build-svg-sprite.js index 64d3580f..36d2e1f1 100644 --- a/build-svg-sprite.js +++ b/build-svg-sprite.js @@ -69,7 +69,9 @@ DATA.forEach((item) => { throw error; } - const jsTemplate = `export default "${result.symbol.sprite.contents.toString().replace(/\"/g, "'")}";`; + const jsTemplate = `export default "${result.symbol.sprite.contents.toString().replace(/\"/g, "'")}";` + .trim() + .concat('\n'); fs.writeFileSync(item.output, jsTemplate); });