Skip to content

Commit a0ef1d1

Browse files
authored
Merge pull request #1685 from Shopify/new-line-svg
[SVG] adding new line to optimize script
2 parents 186f8ca + 01b1bac commit a0ef1d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Use Option list to present a group of selectable items outside of the context of
2121
- Added `prefix` and `suffix` props to `RangeSlider` for better layout control ([#1584](https://github.com/Shopify/polaris-react/pull/1584))
2222
- Added testing documentation and examples in AppProvider ([#1556](https://github.com/Shopify/polaris-react/pull/1556))
2323
- Performance: optimized avatar SVG files ([#1662](https://github.com/Shopify/polaris-react/pull/1662))
24+
- Updated yarn optimize to add new line at the end of SVG files ([#1685](https://github.com/Shopify/polaris-react/pull/1685))
2425

2526
### Bug fixes
2627

scripts/optimize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function optimizeFile(file) {
2626
removeSync(file);
2727

2828
const newFile = resolvePath(dirname(file), `${paramCase(basename(file, '.svg'))}.svg`);
29-
writeFileSync(newFile, result.data);
29+
writeFileSync(newFile, `${result.data}\n`);
3030
resolve();
3131
});
3232
});

0 commit comments

Comments
 (0)