added minification, with templates only in production