Merge pull request #1442 from nasa/dev-skip-optimize

[Build] Skip optimize in dev environment
This commit is contained in:
Andrew Henry 2017-02-21 16:26:41 -08:00 committed by GitHub
commit 5e6e7f018a

View File

@ -69,6 +69,11 @@ var gulp = require('gulp'),
}
};
if (process.env.NODE_ENV === 'development') {
options.requirejsOptimize.optimize = 'none';
}
gulp.task('scripts', function () {
var requirejsOptimize = require('gulp-requirejs-optimize');
var replace = require('gulp-replace-task');