Permalink
Browse files

Experimenting with compiling stylus in production env.

  • Loading branch information...
1 parent de19ddc commit 313095057dbc07008bb88ed681ae4d224a533645 @mdb mdb committed Apr 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 app.js
View
6 app.js
@@ -31,6 +31,12 @@ app.configure('development', function() {
app.configure('production', function() {
app.use(express.errorHandler());
+ app.use(require('stylus').middleware({
+ force: true,
+ src: __dirname + '/public',
+ dest: __dirname + '/public',
+ compress: true
+ }));
});
// Routes

0 comments on commit 3130950

Please sign in to comment.