use dist dir instead of build