missioncontrol icon indicating copy to clipboard operation
missioncontrol copied to clipboard

make build re-runs yarn build even if nothing changed

Open edmorley opened this issue 7 years ago • 1 comments

If I run make build twice, 70s is spent again running yarn build in the 2nd invocation, even though no ui files have been modified. Perhaps the UI build part could be split out to another makefile rule that depends on the ui/ directory, and so only triggers if newer than the dist/ directory?

edmorley avatar Aug 31 '17 19:08 edmorley

To my knowledge make doesn't support directories as targets, but we could probably wrap the invocation of yarn build in some kind of "if" clause that checks the condition you mention.

wlach avatar Sep 26 '17 21:09 wlach