Merge pull request #8 from kurtharriger/master
Recompile if file has changed
This commit is contained in:
commit
6a140b5085
1
index.js
1
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue