1 | // Test URL: http://localhost/auto_parsed_compressed.coffee
|
2 |
|
3 | var minify = require('express-minify');
|
4 | var express = require('express');
|
5 | var app = express();
|
6 |
|
7 | // Important!
|
8 | express.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 |
|
17 | app.use(minify());
|
18 | app.use(express.static(__dirname + '/static'));
|
19 |
|
20 | app.listen(8080); |
\ | No newline at end of file |