aboutsummaryrefslogtreecommitdiff
path: root/node_modules/express-minify/examples/angular.js
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-27 06:44:05 +0000
committerHumairAK <humair88@hotmail.com>2016-07-27 06:44:05 +0000
commit6fd4613d0bf1bb78340e46d45b269ddd3c36f190 (patch)
tree91a2a795aa56d96d076acf1b202645d0e68dd47a /node_modules/express-minify/examples/angular.js
parent6271b9d13139c1e55118e5f26a3a7bf8caeeb11d (diff)
added compression
Diffstat (limited to 'node_modules/express-minify/examples/angular.js')
-rw-r--r--node_modules/express-minify/examples/angular.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/node_modules/express-minify/examples/angular.js b/node_modules/express-minify/examples/angular.js
deleted file mode 100644
index 4038418..0000000
--- a/node_modules/express-minify/examples/angular.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var minify = require('express-minify');
-var express = require('express');
-var app = express();
-
-app.use(function(req, res, next)
-{
- // do not mangle angular JavaScript files
- if (/-angular\.js$/.test(req.url)) {
- res._uglifyMangle = false;
- }
- next();
-});
-
-app.use(minify());
-app.use(express.static(__dirname + '/static'));
-
-app.listen(8080); \ No newline at end of file