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>
<meta charset="utf-8">
<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="stylesheet" href="styles.7e944f30e4357f41ed14.css"></head>
<body>
<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>

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.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
app.use((req, res, next) => {

2
package-lock.json generated
View File

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

View File

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