title: node-sass-middleware only serving css file once
body: <p>I've made a really simple Express website that uses Jade and Sass, but I've run into a problem with my node-sass middleware.  My server only serves a CSS file once, and then returns a 404 for every subsequent request.  I have to restart the server to temporarily fix it.  Here's my code; the server seems to be hang after outputting the css file (maybe, i'm not sure..)</p>
  
  <p>app.js:</p>
  
  <pre><code>var express = require('express'), sassMiddleware = require('node-sass-middleware');
  
  var app = express();
  
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  
  app.use(
      sassMiddleware({
          src: __dirname + '/public/styles/sass',
          dest: __dirname + '/public/styles',
          debug: true,
          outputStyle: 'compressed',
          prefix: '/public/styles'
      }),
      express.static(__dirname + '/public'),
      express.logger('dev')
  );
  
  app.get('/', function(req, res){
      res.render('index', { 
          title: 'Home' 
      });
  });
  
  app.listen(3000);
  </code></pre>
  
  <p>Here is the log from my server:</p>
  
  <pre><code>source: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/sass/main.scss
  dest: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/main.css
  read: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/main.css
  render: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/sass/main.scss
  
  source: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/sass/main.scss
  dest: /Users/jasonzhao/Code/Github/isitjoysbirthday/public/styles/main.css
  </code></pre>
  
  <p>The first 4 lines of the log are form my first request and the next two are from my second request (refreshing the page) which fails.</p>
  
  <p>And finally, here is my Jade template</p>
  
  <pre><code>doctype
  html
    head
      title #{title} - isitjoysbirthday
      link(rel='stylesheet', href='/public/styles/main.css')
    body
      .container
        .main-content
          block content
  </code></pre>
  
  <p>Thanks!</p>