Skip to content

Commit

Permalink
[FLINK-5466] [webfrontend] Set environment to production in gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
uce committed Jan 12, 2017
1 parent 90051db commit 408f6ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flink-runtime-web/web-dashboard/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var mainBowerFiles = require('main-bower-files');
var less = require('gulp-less');
var path = require('path');

var environment = 'development';
var environment = 'production';
var paths = {
src: './app/',
dest: './web/',
Expand All @@ -50,8 +50,8 @@ var paths = {
tmp: './tmp/'
}

gulp.task('set-production', function() {
environment = 'production';
gulp.task('set-development', function() {
environment = 'development';
});

gulp.task('fonts', function() {
Expand Down Expand Up @@ -157,6 +157,7 @@ gulp.task('styles', function () {
});

gulp.task('watch', function () {
environment = 'development';
livereload.listen();

gulp.watch(paths.vendorLocal + '**', ['vendor-scripts']);
Expand All @@ -181,5 +182,5 @@ gulp.task('vendor', ['vendor-styles', 'vendor-scripts']);
gulp.task('compile', ['html', 'partials','styles', 'scripts']);

gulp.task('default', ['fonts', 'assets', 'vendor', 'compile']);
gulp.task('production', ['set-production', 'default']);
gulp.task('dev', ['set-development', 'default']);

0 comments on commit 408f6ea

Please sign in to comment.