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

Feature/multi file generation #17

Merged
merged 8 commits into from
Mar 4, 2020
Merged

Conversation

nivekcode
Copy link
Owner

No description provided.

@nivekcode nivekcode requested review from guillaume-moreau and removed request for guillaume-moreau March 4, 2020 10:38
@nivekcode
Copy link
Owner Author

@Palapapaa FYI. I will document this further. Will write a blog post about this feature - will let you know when I am done.

@@ -21,7 +24,8 @@ const DEFAULTS = {
outputDirectory: './dist',
prefix: 'myIcon',
sourceFilesRegex: ['*.svg'],
typeName: 'myIcons'
typeName: 'myIcons',
optimizeForLayzLoading: false
Copy link
Collaborator

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

Copy link
Owner Author

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 ;)

Copy link
Collaborator

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 ?

Copy link
Owner Author

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

@nivekcode nivekcode merged commit abc22c7 into master Mar 4, 2020
@nivekcode nivekcode deleted the feature/multiFileGeneration branch March 4, 2020 10:48
@guillaume-moreau
Copy link
Collaborator

All this changes look promising =)

I understand the previous refactoring pull request now =)

I'll take a look at this.

Nice job !

@nivekcode
Copy link
Owner Author

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nivekcode
Copy link
Owner Author

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.

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

Successfully merging this pull request may close these issues.

3 participants