Compile a blocks src directory and main index.js entry file and output to different build dirs?

Compile a blocks src directory and main index.js entry file and output to different build dirs?

tech