Skip to content
Snippets Groups Projects
Commit 0c522a4d authored by Robert Long's avatar Robert Long
Browse files

Build system race condition patch

parent b4b34218
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,12 @@ class HandlebarsTemplatePlugin {
});
// Compile templates on each webpack compilation
compiler.plugin("emit", (compilation, callback) => {
this.compileTemplates(compiler, compilation).then(callback);
compiler.plugin("after-emit", (compilation, callback) => {
this.compileTemplates(compiler, compilation)
.then(callback)
.catch(err => {
compilation.errors.push(err);
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment