-
-
Notifications
You must be signed in to change notification settings - Fork 21
chore: add how to customize extractors #53
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
chore: add how to customize extractors #53
Conversation
TheAlexLichter
left a comment
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.
It'd be nice to have a "working" example in the docs as well
README.md
Outdated
| ``` | ||
|
|
||
| ### Use custom extractors | ||
| Each extention can be applied just one exractor. |
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.
| Each extention can be applied just one exractor. | |
| Only one extractor can be applied to each file extention. |
README.md
Outdated
|
|
||
| ### Use custom extractors | ||
| Each extention can be applied just one exractor. | ||
| If you apply a custom extractor to the extentions applied default extractor already, you have to override the default value. |
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.
| If you apply a custom extractor to the extentions applied default extractor already, you have to override the default value. | |
| If you want to apply a custom extractor to the extensions that the default extractor already covers, you have to override the default extractor. This is only possible with the functional notation. |
README.md
Outdated
| extensions: ['html', 'vue', 'js'] | ||
| }, | ||
| { | ||
| extractor: CustomVueExtractor, // This cannot work, because above extractor is applied to 'vue' already. |
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.
| extractor: CustomVueExtractor, // This cannot work, because above extractor is applied to 'vue' already. | |
| extractor: CustomVueExtractor, // This will not work, because the above extractor is applied to 'vue' already. |
TheAlexLichter
left a comment
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.
It'd be nice to have a "working" example in the docs as well
c3cf432 to
d6b6f33
Compare
|
@manniL |
#52
I am not confident in English well, please check it.