- call(['./node_modules/.bin/grunt', 'build', '--output-dir=%s' % build_dir], cwd = rng_base_dir)
+ args = ['./node_modules/.bin/grunt', 'build', '--output-dir=%s' % build_dir]
+ if options['editor_optimize']:
+ args.append('--optimize=%s' % options['editor_optimize'])
+ self.stdout.write('Calling %s at %s' % (' '.join(args), rng_base_dir))
+ call(args, cwd=rng_base_dir)