Permalink
Browse files

add gzip compression for Express app

  • Loading branch information...
1 parent 94834e3 commit 495f1f708af2044d3361e7b9512e4d4b57d2955c @steida steida committed Mar 13, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 Gruntfile.coffee
  2. +1 −0 server/app/index.coffee
View
@@ -218,6 +218,7 @@ module.exports = (grunt) ->
app:
cmd: 'node server/app'
+ grunt.loadNpmTasks 'grunt-bg-shell'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
@@ -228,7 +229,6 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-env'
grunt.loadNpmTasks 'grunt-este'
grunt.loadNpmTasks 'grunt-release'
- grunt.loadNpmTasks 'grunt-bg-shell'
grunt.registerTask 'build', 'Build app.', (app) ->
tasks = [
View
@@ -12,6 +12,7 @@ run = ->
app.set 'title', 'github.com/Steida/este'
app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'
+ app.use express.compress()
app.use express.favicon()
if config.env.development

0 comments on commit 495f1f7

Please sign in to comment.