diff options
Diffstat (limited to 'node_modules/express-minify/examples/angular.js')
| -rw-r--r-- | node_modules/express-minify/examples/angular.js | 17 |
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 |
