Skip to content

Commit a1b4f12

Browse files
author
Tobias Brennecke
committed
Fixed #584 Flag pattern for rebuild if output does not exist yet
1 parent 6fac7d5 commit a1b4f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/lib/changes_hunter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ ChangesHunter.prototype = {
4040
pattern.compileState = CompileState.CLEAN;
4141
}
4242
} catch (e) {
43-
// Output does not exist yet, needs recompile
43+
// Output does not exist yet, force recompile
44+
pattern.compileState = CompileState.NEEDS_REBUILD;
4445
}
4546

4647
let node = patternlab.graph.node(pattern);

0 commit comments

Comments
 (0)