Refactor to use current directory instead of build directory to generate assets