From 1837a8443c2a7d59b259b68cf1dc00be1c2109d6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 2 Mar 2014 19:55:50 -0500 Subject: [PATCH] shifting socket.io back to the end :\ --- src/meta.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/meta.js b/src/meta.js index 07e9255065..385e89e054 100644 --- a/src/meta.js +++ b/src/meta.js @@ -279,7 +279,7 @@ var fs = require('fs'), Meta.js.scripts = jsPaths.filter(function(path) { return path !== null }); // Add socket.io client library - Meta.js.scripts.unshift(path.join(__dirname, '../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js')); + Meta.js.scripts.push(path.join(__dirname, '../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js')); // Add plugin scripts Meta.js.scripts = Meta.js.scripts.concat(plugins.clientScripts); @@ -291,14 +291,13 @@ var fs = require('fs'), }, minify: function (callback) { var uglifyjs = require('uglify-js'), - jsPaths = this.scripts, minified; if (process.env.NODE_ENV === 'development') { winston.info('Minifying client-side libraries'); } - minified = uglifyjs.minify(jsPaths); + minified = uglifyjs.minify(this.scripts); this.cache = minified.code; callback(); },