-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
35 lines (35 loc) · 2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "express-webapp-host",
"version": "0.2.5",
"description": "express middleware to rewrite a html web apps base tag in the index html. This is useful for serving web apps (like angular) from different base urls.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/matthiasg/express-webapp-host.git"
},
"keywords": [
"express",
"middleware",
"webapp"
],
"author": {
"name": "Matthias Goetzke"
},
"license": "BSD",
"readmeFilename": "README.md",
"gitHead": "03fc76388cb7d38bde6e8fa4dcd872c6ff2944bd",
"dependencies": {
"express": "~3.1.2",
"trumpet": "~0.3.6",
"methods": "0.0.1"
},
"devDependencies": {
"express": "~3.1.1"
},
"readme": "express-webapp-host\n===================\n\nSimple express middleware to host a static directory under a deeper url by rewriting the webapps index.html base tag\n\n## index.html\n\nThe index.html base tag must be present.\n\n <meta charset=\"utf-8\">\n <base href='http://localhost:8888/' />\n <title>My App</title>\n\nIt will be rewritten to the actual base path. Using the express example below when access via localhost it would rewrite it to:\n\n <meta charset=\"utf-8\">\n <base href='http://localhost:8080/url/to/app/' />\n <title>My App</title>\n\nAll url in the app should be relative paths.\n\n## usage with express\n\n var webAppHost = require('express-webapp-host');\n var express = require('express');\n var app = express();\n\n app.use('/url/to/app/', webAppHost.webApp('./path/to/app/on/disk'));\n app.listen(8080)\n\n## angular.js\n\nIn combination with angular.js it is now possible to deep link when using Html5 Mode\n \n $locationProvider.html5Mode(true);\n\nMake sure all paths are relative unless you explicitly want to leave the sub location ('/url/to/app/' in the example above)\n",
"_id": "express-webapp-host@0.1.1",
"_from": "express-webapp-host@~0.1.1"
}