-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
feat: add support for async functions to preprocessor option #272
Conversation
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.
Thanks!
@EslamHiko Let's update documentation too |
README.md
Outdated
| Name | Type | Default | Description | | ||
| :---------------------------------: | :-------------------------: | :------------------------------------------: | :----------------------------------------------: | | ||
| **[`attributes`](#attributes)** | `{Boolean\|Object}` | `true` | Enables/Disables attributes handling | | ||
| **[`preprocessor`](#preprocessor)** | `{Function\|AsyncFunction}` | `undefined` | Allows pre-processing of content before handling | |
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.
No need AsyncFunction
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.
No need AsyncFunction
header, just add somehintg like that: You can use async function, for example:
README.md
Outdated
|
||
You can set the `preprocessor` option as an Asynchronous Function (`AsyncFunction`) instance. | ||
You can also set the `preprocessor` option as an Asynchronous Function (`async Function`) instance. | ||
For example : |
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.
Avoid space after :
README.md
Outdated
#### `AsyncFunction` | ||
|
||
You can set the `preprocessor` option as an Asynchronous Function (`AsyncFunction`) instance. | ||
You can also set the `preprocessor` option as an Asynchronous Function (`async Function`) instance. |
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.
as an asynchronous function instance.
README.md
Outdated
| **[`minimize`](#minimize)** | `{Boolean\|Object}` | `true` in production mode, otherwise `false` | Tell `html-loader` to minimize HTML | | ||
| **[`esModule`](#esmodule)** | `{Boolean}` | `false` | Use ES modules syntax | | ||
| **[`minimize`](#minimize)** | `{Boolean\|Object}` | `true` in production mode, otherwise `false` | Tell `html-loader` to minimize HTML | | ||
| **[`esModule`](#esmodule)** | `{Boolean}` | `false` | Use ES modules syntax | |
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.
Why it is changed, if not new?
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.
Oh I added :
in the last of --- under the description table which made the lint centralize the description 😅
This PR contains a:
Motivation / Use-Case
fixes #264
Breaking Changes
No
Additional Info