editor: build - configurable optimize strategy
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 28 Jan 2014 10:21:57 +0000 (11:21 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 28 Jan 2014 10:21:57 +0000 (11:21 +0100)
Gruntfile.js

index 5427659..a97d77c 100644 (file)
@@ -23,7 +23,7 @@ module.exports = function(grunt) {
               // The following two settings are required for source maps to work,
               // see: http://requirejs.org/docs/optimization.html#sourcemaps
               preserveLicenseComments: false,
               // The following two settings are required for source maps to work,
               // see: http://requirejs.org/docs/optimization.html#sourcemaps
               preserveLicenseComments: false,
-              optimize: 'uglify2'
+              optimize: grunt.option('optimize') || 'uglify2'
             }
           }
         },
             }
           }
         },