From c1854de25ce18dc82ab4f49504dff758f218b339 Mon Sep 17 00:00:00 2001 From: Drew Tayman Date: Thu, 30 Jan 2014 21:05:45 -0500 Subject: [PATCH] as written the logic prevented overriding the r.js optimizer (it was only ever none or uglify2) now you can override it in your mimosa config: require: optimize: overrides: optimize: "none" --- src/tasks/builder.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tasks/builder.coffee b/src/tasks/builder.coffee index 2d70afa..a008c25 100644 --- a/src/tasks/builder.coffee +++ b/src/tasks/builder.coffee @@ -64,11 +64,13 @@ class Optimizer _.clone(config.require.optimize.overrides, true) else {} + unless runConfig.optimize? or runConfig.optimize is null + runConfig.optimize = if config.isOptimize and config.isMinify + "none" + else + "uglify2" + - runConfig.optimize = if config.isOptimize and config.isMinify - "none" - else - "uglify2" configFile = if fs.existsSync config.require.commonConfig then config.require.commonConfig else file baseUrl = path.join config.watch.compiledDir, config.watch.javascriptDir