Skip to content

Commit

Permalink
Merge pull request #1685 from Shopify/new-line-svg
Browse files Browse the repository at this point in the history
[SVG] adding new line to optimize script
  • Loading branch information
dleroux committed Jul 3, 2018
2 parents 186f8ca + 01b1bac commit a0ef1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Use Option list to present a group of selectable items outside of the context of
- Added `prefix` and `suffix` props to `RangeSlider` for better layout control ([#1584](https://github.com/Shopify/polaris-react/pull/1584))
- Added testing documentation and examples in AppProvider ([#1556](https://github.com/Shopify/polaris-react/pull/1556))
- Performance: optimized avatar SVG files ([#1662](https://github.com/Shopify/polaris-react/pull/1662))
- Updated yarn optimize to add new line at the end of SVG files ([#1685](https://github.com/Shopify/polaris-react/pull/1685))

### Bug fixes

Expand Down
2 changes: 1 addition & 1 deletion scripts/optimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function optimizeFile(file) {
removeSync(file);

const newFile = resolvePath(dirname(file), `${paramCase(basename(file, '.svg'))}.svg`);
writeFileSync(newFile, result.data);
writeFileSync(newFile, `${result.data}\n`);
resolve();
});
});
Expand Down
Loading

0 comments on commit a0ef1d1

Please sign in to comment.