Changed base href

This commit is contained in:
ShahanaFarooqui 2019-02-19 21:28:52 -05:00
parent 6096166d9d
commit 5b9428c929
5 changed files with 8 additions and 7 deletions

View File

@ -3,10 +3,11 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>RTL</title> <title>RTL</title>
<base href="/rtl/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico"> <link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
<link rel="stylesheet" href="styles.7e944f30e4357f41ed14.css"></head> <link rel="stylesheet" href="styles.7e944f30e4357f41ed14.css"></head>
<body> <body>
<rtl-app></rtl-app> <rtl-app></rtl-app>
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.418928a701f2040ada02.js"></script><script type="text/javascript" src="main.6fa3ca6faff218e326e7.js"></script></body> <script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.418928a701f2040ada02.js"></script><script type="text/javascript" src="main.ea86c29de6f2073c9668.js"></script></body>
</html> </html>

File diff suppressed because one or more lines are too long

2
app.js
View File

@ -22,7 +22,7 @@ const switchRoutes = require("./routes/switch");
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.urlencoded({ extended: false }));
app.use("/rtl/", express.static(path.join(__dirname, "angular"))); app.use("/", express.static(path.join(__dirname, "angular")));
// CORS fix, Only required for developement due to separate backend and frontend servers // CORS fix, Only required for developement due to separate backend and frontend servers
app.use((req, res, next) => { app.use((req, res, next) => {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "rtl", "name": "rtl",
"version": "0.2.1-beta", "version": "0.2.2-beta",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,13 +1,13 @@
{ {
"name": "rtl", "name": "rtl",
"version": "0.2.1-beta", "version": "0.2.2-beta",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng build --prod && ng serve", "start": "ng build --prod && ng serve",
"serve": "ng serve", "serve": "ng serve",
"prebuild": "node ./prebuild", "prebuild": "node ./prebuild",
"build": "ng build --prod --base-href /rtl/", "build": "ng build --prod",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"