All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.1.0 (2024-07-25)
- added the
postprocessoroption (#518) (536a204) - reduce runtime code (61f9a69)
- support absolute URLs and DataURI (#519) (cc34b06)
- using template literals in code when it supported (#520) (6fa80d5)
5.0.0 (2024-01-16)
4.2.0 (2022-09-22)
4.1.0 (2022-07-11)
4.0.0 (2022-06-15)
- minimum supported
Node.jsversion is14.15.0 - update
parse5to7.0.0
3.1.0 (2022-01-08)
3.0.1 (2021-11-02)
3.0.0 (2021-10-21)
- minimum supported
Node.jsversion is12.13.0
2.1.2 (2021-03-09)
- avoid using
fileprotocol (a309fe0)
2.1.1 (2021-02-24)
2.1.0 (2021-02-20)
2.0.0 (2021-02-14)
new URL('./source.ext', import.meta.url)syntax is using for importingsources(i.e.src/srcset/etc) and theesModuleoption istrueby default, you can disable it by setting theesModuleoption tofalse- rename the
attributesoption tosources - the
attributes.rootoption was removed in favorresolve.roots - minimum supported
webpackversion is5 - migrate from
htmlparser2toparse5
- handle more attribute for
metaandlinktags (348e4f5) - allow to disable default sources (#351) (480656f)
- broken
srcwith#hash(#342) (d6590b0) - handle
\character (#353) (c124fae) - pass hash from request to other loaders (#349) (e97d3c8)
1.3.2 (2020-10-09)
- update
schema-utils
1.3.1 (2020-09-21)
1.3.0 (2020-08-25)
1.2.1 (2020-08-19)
1.2.0 (2020-08-18)
- do not handle non standard
scripttypes (ddad9f2) - inline syntax for sources (#310) (c247cfa)
- linefeed characters in sources (#311) (b8ee9ee)
- minimize is more safely (#304) (03152b1)
- perf (#300) (d69f259)
1.1.0 (2020-04-02)
- added support for an async functions to the
preprocessoroption (#272) (e59324b) - allowed to handle an attribute without a tag (#273) (c0d6d5b)
1.0.0 (2020-03-19)
- for parsing HTML now we use
htmlparser2package - the
attrsoption was renamed to theattributesoption - the
interpolateoption was removed, please consider migration on thepreprocessor - the
minimizeoption istrueby default inproductionmode. You need to list all options forhtml-minifierif you useobjectnotation. - uppercase tags and uppercase attributes are handled by default
- the
rootoption was moved under theattributesoption, please look at the documentation - emit an error on broken HTML syntax when minimization is enabled
- By default, now we process the following tags with attributes:
- the
srcattribute of theaudiotag - the
srcattribute of theembedtag - the
srcattribute of theimgtag - the
srcsetattribute of theimgtag - the
srcattribute of theinputtag - the
hrefattribute of thelinktag (only for stylesheets) - the
dataattribute of theobjecttag - the
srcattribute of thescripttag - the
srcattribute of thesourcetag - the
srcsetattribute of thesourcetag - the
srcattribute of thetracktag - the
posterattribute of thevideotag - the
srcattribute of thevideotag
- the
- the
attributesoption should beBooleanorObject, please look at the documentation - the
exportAsDefaultoption were removed in favor theesModulesoption - the
exportAsEs6Defaultoption were removed in favor theesModulesoption
- handle more tags and attributes
- added the
preprocessoroption - added the
esModuleoption - add the
rulFilteroption for filtering some of urls, please look at the documentation - allow to setup how to handle and filter tags and attributes, please look at the documentation
- improve error reporting
- adding quotes when necessary for unquoted sources
- do not handle empty attributes
- escape
\u2028and\u2029characters - handle only valid srcset tags
- parser tags and attributes according spec
- reduce
import/requirecount - reduce size of generated modules
- respect
#hashin sources - support ES6 syntax in
scripttags when minimize - support ES6 import of urls
0.5.5 (2018-01-17)
0.5.4 (2018-01-05)
- ignore attribute if
mailto:is present (#145) (4b13d4c) - index: escape double quotes correctly (
options.interpolate) (#154) (1ef5de4)
0.5.1 (2017-08-08)
0.5.0 (2017-07-26)
0.4.5 (2017-07-26)
- es6 default export (fae0309)
- Handle es6 default export (e04e969)
- getOptions: deprecation warn in loaderUtils (#114) (3d47e98)
- Adds exportAsDefault (37d40d8)