All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
webpack 4 and node <= 10 - For older webpack or node versions please use html-webpack-plugin 4.x<head> tag to improve the page load performance by default - You can set the scriptLoading option to 'blocking' to keep the previous behaviour'' (an empty string) will no longer calculate a relative path from the html file to the assets anymore - You can set the publicPath option to 'auto' to keep the previous behaviourhtml-webpack-plugin which add additional assetTags should provide a meta attributeappcache-webpack-pluginwebpack 4 and node <= 10 support to make use of the latest APIs (b7a9e8f)webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS compilation stage (8964bc4, b6895cb, a97234e, 1b59e09, 4fca596, ed64a6b, 86245db, 50b3bec, c697725)'[name]' placeholder for the filename option (cd5bd2a, 3d9ff48)filename option can now be a function (c5beb4b)'auto' public paths inside templates (a059fcf, b09b439)'' (5ea7de4)thisCompilation in child compiler for faster builds (1d59e9a)The summary can be found in the release blog post.
contenthash along with templatehash (049d4d3), closes #1033contenthash to templatehash (4c11c5d).toString implementation to htmlTags to allow easier rendering (34d8aa5){ entryName: string, path: string}<script> and <link> tagshtml-webpack-plugin-alter-asset-tags event to allow plugins to adjust the script/link tagshtml-webpack-plugin-alter-chunks event for custom chunk sorting and interpolationtype attribute to script element to prevent issues in Safari 9.1.1xhtml option which is turned of by default. When activated it will inject self closed <link href=".." /> tags instead of unclosed <link href=".."> tags. (#255)'/dist/[hash]/'. (#249)hash field to the chunk objectcompilation field to the templateParam object (#237)html-webpack-plugin-before-html-generation eventdependency mode for chunksSortMode to sort chunks based on their dependencies with each other"Uncaught TypeError: __webpack_require__(...) is not a function"lodash resolve error (#172)lodash template's HTML "escape" delimiter (<%- %>)html-webpack-plugin-before-html-processing, html-webpack-plugin-after-html-processing, html-webpack-plugin-after-emit to allow other plugins to alter the html this plugin executes@1 versionminify optiontemplateContent option from configurationchunksSortMode option to configuration to control how chunks should be sorted before they are included to the htmlfalse or object in minify configuration optionsize field to the chunk object<link>s being discarded when used with "inject: 'head'"favicon.ico optionhash: true) for cache bustingo.htmlWebpackPlugin.files attribute. See readme for more
details. This new attribute deprecates the old o.htmlWebpackPlugin.assets attribute.templateContent option can now be a function that returns the template string to useo.webpackConfig)