var fs = require("fs"); var envify = require('envify/custom') var browserify = require("browserify"); browserify("./govue.js") .transform({ global: true }, envify({ NODE_ENV: 'production' })) .bundle() .pipe(fs.createWriteStream("../govue-runtime/govue.js"));