Add FIXME comment about html-webpack-plugin-after-emit

This commit is contained in:
Tusooa Zhu 2022-08-16 07:57:42 -04:00
parent e0f3d9a8e0
commit d8962919b9
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ var devMiddleware = require('webpack-dev-middleware')(compiler, {
})
var hotMiddleware = require('webpack-hot-middleware')(compiler)
// FIXME: The statement below gives error about hooks being required in webpack 5.
// force page reload when html-webpack-plugin template changes
// compiler.plugin('compilation', function (compilation) {
// compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {