Prepare and commit the dist files in closure mode.