Skip to content

Configure line endings for generated files #182

@ichepurnoy

Description

@ichepurnoy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions