aboutsummaryrefslogtreecommitdiff
path: root/node_modules/express-minify/examples/preserve_comments.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/express-minify/examples/preserve_comments.js')
-rw-r--r--node_modules/express-minify/examples/preserve_comments.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/express-minify/examples/preserve_comments.js b/node_modules/express-minify/examples/preserve_comments.js
deleted file mode 100644
index f812d54..0000000
--- a/node_modules/express-minify/examples/preserve_comments.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var minify = require('express-minify');
-var express = require('express');
-var app = express();
-
-app.use(function(req, res, next)
-{
- if (/\.(user|meta)\.js$/.test(req.url)) {
- res._uglifyOutput = {
- comments: true
- };
- }
- next();
-});
-
-app.use(minify());
-app.use(express.static(__dirname + '/static'));
-
-app.listen(8080); \ No newline at end of file