aboutsummaryrefslogtreecommitdiff
path: root/node_modules/express-minify/examples/dynamic.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 08:59:55 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 08:59:55 +0000
commit197e17a7bcbb5459897b7f334a790706c064c31c (patch)
treeaf4c3ebb095261dceac8fd00229d01bf1282f3d1 /node_modules/express-minify/examples/dynamic.js
parentb0cbe2db0ee3311fc028e7229749726d4cfe6973 (diff)
parent21a885311321299163b4cae69d672baaddfba37b (diff)
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'node_modules/express-minify/examples/dynamic.js')
-rw-r--r--node_modules/express-minify/examples/dynamic.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/express-minify/examples/dynamic.js b/node_modules/express-minify/examples/dynamic.js
deleted file mode 100644
index d3e1f10..0000000
--- a/node_modules/express-minify/examples/dynamic.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var minify = require('express-minify');
-var express = require('express');
-var app = express();
-
-var responseJS =
- "(function(window, undefined)\n" +
- "{\n" +
- "\n" +
- " var hello = 'hello';\n" +
- "\n" +
- " var world = 'world';\n" +
- "\n" +
- " alert(hello + world);\n" +
- "\n" +
- "})(window);"
-
-app.use(minify());
-app.get('/response.js', function(req, res)
-{
- res.setHeader('Content-Type', 'application/javascript');
- res.end(responseJS);
-});
-
-app.listen(8080); \ No newline at end of file