diff --git a/CHANGELOG.md b/CHANGELOG.md index e953d2e9..e83b935e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [4.1.0](https://github.com/webpack-contrib/html-loader/compare/v4.0.0...v4.1.0) (2022-07-11) + + +### Features + +* added the `scriptingEnabled` option ([#448](https://github.com/webpack-contrib/html-loader/issues/448)) ([6ed9f9c](https://github.com/webpack-contrib/html-loader/commit/6ed9f9c8df1e8ac2722bed01a9d28b660d64e744)) + ### [4.0.0](https://github.com/webpack-contrib/html-loader/compare/v3.1.0...v4.0.0) (2022-06-15) ### ⚠ BREAKING CHANGES diff --git a/README.md b/README.md index 8dc0177c..9a5cdf21 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ type sources = value: string, resourcePath: string ) => boolean; + scriptingEnabled?: boolean; }; ``` @@ -368,7 +369,9 @@ module.exports = { }; ``` -**Note:** source with a `tag` option takes precedence over source without. +> **Note** +> +> source with a `tag` option takes precedence over source without. Filter can be used to disable default sources. @@ -445,6 +448,43 @@ module.exports = { }; ``` +#### `scriptingEnabled` + +Type: + +```ts +type scriptingEnabled = boolean; +``` + +Default: `true` + +By default, the parser in `html-loader` interprets content inside `