Ivan - Use production enviroment when building the frontend with 'prod'

This commit is contained in:
Ivan Diaz 2017-06-17 22:17:24 -03:00
parent 094bd24982
commit e2db3611d4
1 changed files with 3 additions and 2 deletions

View File

@ -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);
});
});