UNPKG

472 BJavaScriptView Raw
1// Test URL: http://localhost/auto_parsed_compressed.coffee
2
3var minify = require('express-minify');
4var express = require('express');
5var app = express();
6
7// Important!
8express.static.mime.define(
9{
10 'text/coffeescript': ['coffee'],
11 'text/less': ['less'],
12 'text/x-sass': ['sass'],
13 'text/x-scss': ['scss'],
14 'text/stylus': ['styl']
15});
16
17app.use(minify());
18app.use(express.static(__dirname + '/static'));
19
20app.listen(8080);
\No newline at end of file