update local compile to handle watch and liveReload