-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature/multi file generation #17
Conversation
@Palapapaa FYI. I will document this further. Will write a blog post about this feature - will let you know when I am done. |
src/bin/svg-to-ts.ts
Outdated
@@ -21,7 +24,8 @@ const DEFAULTS = { | |||
outputDirectory: './dist', | |||
prefix: 'myIcon', | |||
sourceFilesRegex: ['*.svg'], | |||
typeName: 'myIcons' | |||
typeName: 'myIcons', | |||
optimizeForLayzLoading: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem's to be a typo here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What typo, I don't see it ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optimizeForLayzLoading
should be optimizeForLazyLoading
right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, yes y and z is wrong. Sorry, had a hard time seeing a difference 😅will correct it
All this changes look promising =) I understand the previous refactoring pull request now =) I'll take a look at this. Nice job ! |
🎉 This PR is included in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Yeah, it's based on some ideas I had in mind for a long time. I finally got time to dive a little bit deeper into this topic. But I still need to document this. The basic idea is that the whole library becomes even more tree shakable. Especially when it is used in combination with lazy loading. For now, I would say, this feature is still experimental. Therefore no official docs. I will try to use this in a real-world project and then document it accordingly. There are some additional manual steps you need to perform. The current implementation is not affected by this change it therefore continues to work as usual. |
No description provided.