"use strict";

var fs = require('fs');

module.exports = function(ctx, done){
    var buf = ("module.exports = process.env = " +
        JSON.stringify(ctx.getConfig(), null, 4) + ';');
    fs.writeFile(ctx.path('config.js'), buf, done);
};
@@ -177,17 +177,73 @@
 ) + ';')
-;
+,%0A        dest = ctx%5B'js config path'%5D %7C%7C './config.js';%0A
 %0A    fs.
@@ -265,19 +265,12 @@
 ath(
-'config.js'
+dest
 ), b

Allow specifying config write path in metadata. Closes #22