cleanup and precompile assets