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

File names containing dots in the name are not accepted when building (at "conversionType": "object") #126

Open
artschedrov opened this issue Jun 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@artschedrov
Copy link

artschedrov commented Jun 21, 2021

Hi, when the filename contains dots in the name, then when the file ts is created, an empty object is output.

for example I have this svg's:
Снимок экрана 2021-06-21 в 23 46 20

and such a config in package.json:

"svg-to-ts": { "conversionType": "object", "srcFiles": [ "./src/shared/assets/svg/*.svg" ], "outputDirectory": "./src/shared/assets/svg", "fileName": "svg-icons", "svgoConfig": { "plugins": [ { "removeDimensions": true, "cleanupAttrs": true } ] } }

and my output contain empty object

export default {}

if you remove the dots in the file names, then everything works

Снимок экрана 2021-06-21 в 23 53 47

@marco24690
Copy link

Hi, any solution yet? Same issue there

@nivekcode
Copy link
Owner

Thx, a lot for reporting this. This feature is currently not supported. But of course, it would make sense to support it. I will check if I find time for a PR in the next couple of weeks.

@nivekcode nivekcode added the enhancement New feature or request label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants