You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ type sources =
96
96
97
97
Default: `true`
98
98
99
-
By default every loadable attributes (for example - `<img src="image.png">`) is imported (`const img = require('./image.png')` or `import img from "./image.png""`).
99
+
By default every loadable attribute (for example - `<img src="image.png">`) is imported (`const img = require('./image.png')` or `import img from "./image.png""`).
100
100
You may need to specify loaders for images in your configuration (recommended [`asset modules`](https://webpack.js.org/guides/asset-modules/)).
101
101
102
102
Supported tags and attributes:
@@ -126,7 +126,7 @@ Supported tags and attributes:
126
126
127
127
#### `boolean`
128
128
129
-
The `true` value enables processing of all default elements and attributes, the `false`disable processing of all attributes.
129
+
The `true` value enables the processing of all default elements and attributes, the `false`value disables the processing of all attributes.
130
130
131
131
**webpack.config.js**
132
132
@@ -149,7 +149,7 @@ module.exports = {
149
149
150
150
#### `object`
151
151
152
-
Allows you to specify which tags and attributes to process, filter them, filter urls and process sources starts with `/`.
152
+
Allows you to specify which tags and attributes to process, filter them, filter urls and process sources starting with `/`.
153
153
154
154
For example:
155
155
@@ -217,7 +217,7 @@ type list = Array<{
217
217
218
218
Default: [supported tags and attributes](#sources).
219
219
220
-
Allows to setup which tags and attributes to process and how, and the ability to filter some of them.
220
+
Allows to setup which tags and attributes to process and how, as well as the ability to filter some of them.
221
221
222
222
Using `...` syntax allows you to extend [default supported tags and attributes](#sources).
223
223
@@ -418,7 +418,7 @@ type urlFilter = (
418
418
Default: `undefined`
419
419
420
420
Allow to filter urls. All filtered urls will not be resolved (left in the code as they were written).
421
-
All non requestable sources (for example `<img src="javascript:void(0)">`) do not handle by default.
421
+
Non-requestable sources (for example `<img src="javascript:void(0)">`) are not handled by default.
422
422
423
423
```js
424
424
module.exports= {
@@ -719,7 +719,7 @@ type esModule = boolean;
719
719
Default: `true`
720
720
721
721
By default, `html-loader` generates JS modules that use the ES modules syntax.
722
-
There are some cases in which using ES modules is beneficial, like in the case of[module concatenation](https://webpack.js.org/plugins/module-concatenation-plugin/) and [tree shaking](https://webpack.js.org/guides/tree-shaking/).
722
+
There are some cases in which using ES modules is beneficial, such as[module concatenation](https://webpack.js.org/plugins/module-concatenation-plugin/) and [tree shaking](https://webpack.js.org/guides/tree-shaking/).
723
723
724
724
You can enable a CommonJS modules syntax using:
725
725
@@ -745,7 +745,7 @@ module.exports = {
745
745
746
746
### Disable url resolving using the `<!-- webpackIgnore: true -->` comment
747
747
748
-
With `<!-- webpackIgnore: true -->` comment, can to disable sources handling for next tag.
748
+
With `<!-- webpackIgnore: true -->` comment, one can disable sources handling for next tag.
749
749
750
750
```html
751
751
<!-- Disabled url handling for the src attribute -->
@@ -771,7 +771,7 @@ With `<!-- webpackIgnore: true -->` comment, can to disable sources handling for
771
771
772
772
### roots
773
773
774
-
With [`resolve.roots`](https://webpack.js.org/configuration/resolve/#resolveroots) can specify a list of directories where requests of server-relative URLs (starting with '/') are resolved.
774
+
With [`resolve.roots`](https://webpack.js.org/configuration/resolve/#resolveroots)one can specify a list of directories where requests of server-relative URLs (starting with '/') are resolved.
0 commit comments