diff --git a/CHANGELOG.md b/CHANGELOG.md index b3b7a006..d8dd04c7 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. +## [5.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.1.0...v5.2.0) (2021-02-19) + + +### Features + +* improve ssr ([73d2a66](https://github.com/jantimon/html-webpack-plugin/commit/73d2a660b10b9ebf8a341f0ddb173bcaaf1e513c)) + ## [5.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v5.0.0...v5.1.0) (2021-02-12) diff --git a/examples/chunk-optimization/dist/webpack-5/entryA.js b/examples/chunk-optimization/dist/webpack-5/entryA.js index 1c9f5e6c..1c761428 100644 --- a/examples/chunk-optimization/dist/webpack-5/entryA.js +++ b/examples/chunk-optimization/dist/webpack-5/entryA.js @@ -176,7 +176,9 @@ document.body.appendChild(h1); /******/ })(); /******/ /************************************************************************/ +/******/ /******/ // run startup -/******/ __webpack_require__.x(); +/******/ var __webpack_exports__ = __webpack_require__.x(); +/******/ /******/ })() ; \ No newline at end of file diff --git a/examples/chunk-optimization/dist/webpack-5/entryB.js b/examples/chunk-optimization/dist/webpack-5/entryB.js index ef7e44f5..2c0fa57a 100644 --- a/examples/chunk-optimization/dist/webpack-5/entryB.js +++ b/examples/chunk-optimization/dist/webpack-5/entryB.js @@ -175,7 +175,9 @@ document.body.appendChild(h1); /******/ })(); /******/ /************************************************************************/ +/******/ /******/ // run startup -/******/ __webpack_require__.x(); +/******/ var __webpack_exports__ = __webpack_require__.x(); +/******/ /******/ })() ; \ No newline at end of file diff --git a/examples/chunk-optimization/webpack.config.js b/examples/chunk-optimization/webpack.config.js index 4ab211ea..d7d38679 100755 --- a/examples/chunk-optimization/webpack.config.js +++ b/examples/chunk-optimization/webpack.config.js @@ -16,7 +16,7 @@ module.exports = { module: { rules: [ { test: /\.css$/, use: ['style-loader', 'css-loader'] }, - { test: /\.png$/, loader: 'file-loader' } + { test: /\.png$/, type: 'asset/resource' } ] }, optimization: { diff --git a/examples/custom-insertion-position/dist/webpack-5/bundle.js b/examples/custom-insertion-position/dist/webpack-5/bundle.js index a81d487b..68fc1b11 100644 --- a/examples/custom-insertion-position/dist/webpack-5/bundle.js +++ b/examples/custom-insertion-position/dist/webpack-5/bundle.js @@ -1,4 +1,5 @@ /******/ (() => { // webpackBootstrap +var __webpack_exports__ = {}; var h1 = document.createElement('h1'); h1.innerHTML = 'Hello world!'; document.body.appendChild(h1); diff --git a/examples/custom-template/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png b/examples/custom-template/dist/webpack-5/55b19870aff2e53d1fb1.png similarity index 100% rename from examples/custom-template/dist/webpack-5/55b19870aff2e53d1fb1a258c1032fbf.png rename to examples/custom-template/dist/webpack-5/55b19870aff2e53d1fb1.png diff --git a/examples/custom-template/dist/webpack-5/bundle.js b/examples/custom-template/dist/webpack-5/bundle.js index 635cfad1..62ede7bd 100644 --- a/examples/custom-template/dist/webpack-5/bundle.js +++ b/examples/custom-template/dist/webpack-5/bundle.js @@ -49,6 +49,8 @@ __webpack_require__.r(__webpack_exports__); /******/ })(); /******/ /************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { __webpack_require__(636); var h1 = document.createElement('h1'); diff --git a/examples/custom-template/dist/webpack-5/index.html b/examples/custom-template/dist/webpack-5/index.html index 11d3a9ed..62a7defc 100644 --- a/examples/custom-template/dist/webpack-5/index.html +++ b/examples/custom-template/dist/webpack-5/index.html @@ -1 +1 @@ -