# Changelog 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. ## [1.1.0](https://github.com/webpack-contrib/html-loader/compare/v1.0.0...v1.1.0) (2020-04-02) ### Features * added support for an async functions to the `preprocessor` option ([#272](https://github.com/webpack-contrib/html-loader/issues/272)) ([e59324b](https://github.com/webpack-contrib/html-loader/commit/e59324b929557a9e1da5e1713748351cf37efdb1)) * allowed to handle an attribute without a tag ([#273](https://github.com/webpack-contrib/html-loader/issues/273)) ([c0d6d5b](https://github.com/webpack-contrib/html-loader/commit/c0d6d5b9338af219a5cd81779ee2bcd9254420ed)) ### Bug Fixes * hash processing improved ([#275](https://github.com/webpack-contrib/html-loader/issues/275)) ([74d2c60](https://github.com/webpack-contrib/html-loader/commit/74d2c607c519bdaad995a51e74b6317c8cfaad14)) ## [1.0.0](https://github.com/ryanclark/html-loader/compare/v0.5.5...v1.0.0) (2020-03-19) ### ⚠ BREAKING CHANGES * for parsing HTML now we use `htmlparser2` package * the `attrs` option was renamed to the `attributes` option * the `interpolate` option was removed, please consider migration on the [`preprocessor`](https://github.com/webpack-contrib/html-loader#preprocessor) * the `minimize` option is `true` by default in `production` mode. You need to list all options for `html-minifier` if you use `object` notation. * uppercase tags and uppercase attributes are handled by default * the `root` option was moved under the `attributes` option, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object) * emit an error on broken HTML syntax when minimization is enabled * By default, now we process the following tags with attributes: * the `src` attribute of the `audio` tag * the `src` attribute of the `embed` tag * the `src` attribute of the `img` tag * the `srcset` attribute of the `img` tag * the `src` attribute of the `input` tag * the `href` attribute of the `link` tag (only for stylesheets) * the `data` attribute of the `object` tag * the `src` attribute of the `script` tag * the `src` attribute of the `source` tag * the `srcset` attribute of the `source` tag * the `src` attribute of the `track` tag * the `poster` attribute of the `video` tag * the `src` attribute of the `video` tag * the `attributes` option should be `Boolean` or `Object`, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object) * the `exportAsDefault` option were removed in favor the `esModules` option * the `exportAsEs6Default` option were removed in favor the `esModules` option ### Features * handle more tags and attributes * added the `preprocessor` option * added the `esModule` option * add the `rulFilter` option for filtering some of urls, please look at the [documentation](https://github.com/webpack-contrib/html-loader#urlfilter) * allow to setup how to handle and filter tags and attributes, please look at the [documentation](https://github.com/webpack-contrib/html-loader#list) * improve error reporting ### Bug Fixes * adding quotes when necessary for unquoted sources * do not handle empty attributes * escape `\u2028` and `\u2029` characters * handle only valid srcset tags * parser tags and attributes according spec * reduce `import`/`require` count * reduce size of generated modules * respect `#hash` in sources * support ES6 syntax in `script` tags when minimize * support ES6 import of urls ## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17) ### Bug Fixes * **index:** don't prepend `./` to the URL on `interpolate=require` (`options.interpolate`) ([#165](https://github.com/webpack-contrib/html-loader/issues/165)) ([9515410](https://github.com/webpack-contrib/html-loader/commit/9515410)) ## [0.5.4](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.4) (2018-01-05) ### Bug Fixes * ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c)) * **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4)) ## [0.5.1](https://github.com/webpack/html-loader/compare/v0.5.0...v0.5.1) (2017-08-08) ### Bug Fixes * Support for empty tags in tag-attribute matching ([#133](https://github.com/webpack/html-loader/issues/133)) ([6efa6de](https://github.com/webpack/html-loader/commit/6efa6de)), closes [#129](https://github.com/webpack/html-loader/issues/129) # [0.5.0](https://github.com/webpack/html-loader/compare/v0.4.3...v0.5.0) (2017-07-26) ### Features * add support for empty tags in `tag:attribute` matching ([#129](https://github.com/webpack/html-loader/issues/129)) ([70370dc](https://github.com/webpack/html-loader/commit/70370dc)) ## [0.4.5](https://github.com/webpack/html-loader/compare/v0.4.3...v0.4.5) (2017-07-26) ### Bug Fixes * es6 default export ([fae0309](https://github.com/webpack/html-loader/commit/fae0309)) * Handle es6 default export ([e04e969](https://github.com/webpack/html-loader/commit/e04e969)) * **getOptions:** deprecation warn in loaderUtils ([#114](https://github.com/webpack/html-loader/issues/114)) ([3d47e98](https://github.com/webpack/html-loader/commit/3d47e98)) ### Features * Adds exportAsDefault ([37d40d8](https://github.com/webpack/html-loader/commit/37d40d8))