Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure line endings for generated files #182

Open
ichepurnoy opened this issue Jul 1, 2022 · 0 comments
Open

Configure line endings for generated files #182

ichepurnoy opened this issue Jul 1, 2022 · 0 comments

Comments

@ichepurnoy
Copy link

Hi! I'm using conversionType==='files' option in configuration (but the problem is also same for conversionType==='object'). But every time I re-generate my icons, Git sees all re-created *.ts files as changed, because they have LF endings. I'm on Windows, I have set up my Git as recommended by its docs: git config --global core.autocrlf true. How can I configure line endings, to avoid commiting my *.ts icons every time?

Yes, I fixed it for now, by creating .gitattributes file in project root, with these 2 lines in it:

src/assets/images/custom-icons/svg/ts/*.ts -text
src/assets/images/custom-icons/svg/*.ts -text

I just wonder if there's a way to fix it from svg-to-ts side. I'm not 100% sure that svg-to-ts is the cause of the issue, so, I would love to hear an opinion.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant