diff --git a/index.js b/index.js index 4923a06..0f63ba3 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ HtmlWebpackPlugin.prototype.apply = function(compiler) { if (!templateFile) { templateFile = path.join(__dirname, 'default_index.html'); } + compiler.fileDependencies.push(templateFile); fs.readFile(templateFile, 'utf8', function(err, htmlTemplateContent) { if (err) {