UNPKG

7.37 kBMarkdownView Raw
1# Changelog
2
3All 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
5### [1.2.1](https://github.com/webpack-contrib/html-loader/compare/v1.2.0...v1.2.1) (2020-08-19)
6
7
8### Bug Fixes
9
10* ignore template sources ([#314](https://github.com/webpack-contrib/html-loader/issues/314)) ([078d9bd](https://github.com/webpack-contrib/html-loader/commit/078d9bdc36d256d6a78ab0ae9b8ccddbef11393c))
11
12## [1.2.0](https://github.com/webpack-contrib/html-loader/compare/v1.1.0...v1.2.0) (2020-08-18)
13
14
15### Features
16
17* support SVG tags ([#302](https://github.com/webpack-contrib/html-loader/issues/302)) ([1acd204](https://github.com/webpack-contrib/html-loader/commit/1acd20448dbe976b883597b135bb8ac9e1b71d1a))
18
19
20### Bug Fixes
21
22* do not handle non standard `script` types ([ddad9f2](https://github.com/webpack-contrib/html-loader/commit/ddad9f2d6f5ab75fe2afd247bf55b1646c6e1c31))
23* inline syntax for sources ([#310](https://github.com/webpack-contrib/html-loader/issues/310)) ([c247cfa](https://github.com/webpack-contrib/html-loader/commit/c247cfa9ad66281b28aef5397c8c2d2786f05867))
24* linefeed characters in sources ([#311](https://github.com/webpack-contrib/html-loader/issues/311)) ([b8ee9ee](https://github.com/webpack-contrib/html-loader/commit/b8ee9ee0d60848e84e52fb117c1f3cdc2ebf08d7))
25* minimize is more safely ([#304](https://github.com/webpack-contrib/html-loader/issues/304)) ([03152b1](https://github.com/webpack-contrib/html-loader/commit/03152b1d3b807a287d84302f6a9987ceb22d395c))
26* perf ([#300](https://github.com/webpack-contrib/html-loader/issues/300)) ([d69f259](https://github.com/webpack-contrib/html-loader/commit/d69f259d2a6b4bc9ba9c163fd2d70989c3f3a6ff))
27
28## [1.1.0](https://github.com/webpack-contrib/html-loader/compare/v1.0.0...v1.1.0) (2020-04-02)
29
30
31### Features
32
33* 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))
34* 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))
35
36
37### Bug Fixes
38
39* hash processing improved ([#275](https://github.com/webpack-contrib/html-loader/issues/275)) ([74d2c60](https://github.com/webpack-contrib/html-loader/commit/74d2c607c519bdaad995a51e74b6317c8cfaad14))
40
41## [1.0.0](https://github.com/ryanclark/html-loader/compare/v0.5.5...v1.0.0) (2020-03-19)
42
43
44### ⚠ BREAKING CHANGES
45
46* for parsing HTML now we use `htmlparser2` package
47* the `attrs` option was renamed to the `attributes` option
48* the `interpolate` option was removed, please consider migration on the [`preprocessor`](https://github.com/webpack-contrib/html-loader#preprocessor)
49* the `minimize` option is `true` by default in `production` mode. You need to list all options for `html-minifier` if you use `object` notation.
50* uppercase tags and uppercase attributes are handled by default
51* the `root` option was moved under the `attributes` option, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object)
52* emit an error on broken HTML syntax when minimization is enabled
53* By default, now we process the following tags with attributes:
54 * the `src` attribute of the `audio` tag
55 * the `src` attribute of the `embed` tag
56 * the `src` attribute of the `img` tag
57 * the `srcset` attribute of the `img` tag
58 * the `src` attribute of the `input` tag
59 * the `href` attribute of the `link` tag (only for stylesheets)
60 * the `data` attribute of the `object` tag
61 * the `src` attribute of the `script` tag
62 * the `src` attribute of the `source` tag
63 * the `srcset` attribute of the `source` tag
64 * the `src` attribute of the `track` tag
65 * the `poster` attribute of the `video` tag
66 * the `src` attribute of the `video` tag
67* the `attributes` option should be `Boolean` or `Object`, please look at the [documentation](https://github.com/webpack-contrib/html-loader#object)
68* the `exportAsDefault` option were removed in favor the `esModules` option
69* the `exportAsEs6Default` option were removed in favor the `esModules` option
70
71### Features
72
73* handle more tags and attributes
74* added the `preprocessor` option
75* added the `esModule` option
76* add the `rulFilter` option for filtering some of urls, please look at the [documentation](https://github.com/webpack-contrib/html-loader#urlfilter)
77* allow to setup how to handle and filter tags and attributes, please look at the [documentation](https://github.com/webpack-contrib/html-loader#list)
78* improve error reporting
79
80### Bug Fixes
81
82* adding quotes when necessary for unquoted sources
83* do not handle empty attributes
84* escape `\u2028` and `\u2029` characters
85* handle only valid srcset tags
86* parser tags and attributes according spec
87* reduce `import`/`require` count
88* reduce size of generated modules
89* respect `#hash` in sources
90* support ES6 syntax in `script` tags when minimize
91* support ES6 import of urls
92
93<a name="0.5.5"></a>
94## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17)
95
96
97### Bug Fixes
98
99* **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))
100
101
102
103<a name="0.5.4"></a>
104## [0.5.4](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.4) (2018-01-05)
105
106
107### Bug Fixes
108
109* 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))
110* **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))
111
112
113<a name="0.5.1"></a>
114## [0.5.1](https://github.com/webpack/html-loader/compare/v0.5.0...v0.5.1) (2017-08-08)
115
116
117### Bug Fixes
118
119* 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)
120
121
122
123<a name="0.5.0"></a>
124# [0.5.0](https://github.com/webpack/html-loader/compare/v0.4.3...v0.5.0) (2017-07-26)
125
126
127### Features
128
129* 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))
130
131
132<a name="0.4.5"></a>
133## [0.4.5](https://github.com/webpack/html-loader/compare/v0.4.3...v0.4.5) (2017-07-26)
134
135
136### Bug Fixes
137
138* es6 default export ([fae0309](https://github.com/webpack/html-loader/commit/fae0309))
139* Handle es6 default export ([e04e969](https://github.com/webpack/html-loader/commit/e04e969))
140* **getOptions:** deprecation warn in loaderUtils ([#114](https://github.com/webpack/html-loader/issues/114)) ([3d47e98](https://github.com/webpack/html-loader/commit/3d47e98))
141
142
143### Features
144
145* Adds exportAsDefault ([37d40d8](https://github.com/webpack/html-loader/commit/37d40d8))