From e2db3611d44546e4dcae641a393ec2d0aae35486 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Sat, 17 Jun 2017 22:17:24 -0300 Subject: [PATCH] Ivan - Use production enviroment when building the frontend with 'prod' --- client/gulp/tasks/production.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/gulp/tasks/production.js b/client/gulp/tasks/production.js index 1c72c847..a2de9a81 100644 --- a/client/gulp/tasks/production.js +++ b/client/gulp/tasks/production.js @@ -4,11 +4,12 @@ var gulp = require('gulp'); var runSequence = require('run-sequence'); gulp.task('prod', ['clean'], function(callback) { - + process.env.NODE_ENV = 'production'; + callback = callback || function() {}; global.isProd = true; runSequence(['sass', 'imagemin', 'browserify', 'copyFonts', 'copyIndex', 'copyIcons'], callback); -}); \ No newline at end of file +});