Skip to content

Commit

Permalink
Merge branch 'master' into token-db-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pallavi2209 committed Nov 15, 2016
2 parents 652ed73 + 2337cc5 commit 7d69ea0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ gulp.task('browserifyViews', () => {
const bundler = browserify(props);
const outputPath = pathToApp.split('/').splice(2).join('/');

var stream = bundler.bundle();
var stream = bundler.transform('uglifyify').bundle();
return stream
.on('error', (err) => {
console.error(err);
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ function start() { // eslint-disable-line max-statements
const enforcesSSL = require('express-enforces-ssl');

const app = express();

/*
* Compress(gzip) all the api responses and all the static files.
* Compress(gzip) all the api responses and all the static files.
* Since this is called before the static pages and the API routes, this will
* ensure that both the static pages and the API response are compressed.
*/

app.use(compress());

const httpServer = require('http').Server(app);

const io = require('socket.io')(httpServer);
const socketIOSetup = require('./realtime/setupSocketIO');
socketIOSetup.setupNamespace(io);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
"supertest": "^1.1.0",
"swagger-tools": "^0.10.1",
"throng": "^1.0.1",
"uglifyify": "^3.0.4",
"underscore": "^1.8.3",
"validator": "^4.0.2",
"vinyl-source-stream": "^1.1.0",
Expand Down

0 comments on commit 7d69ea0

Please sign in to comment.