projects environments

master
Boris Voropaev 2023-10-31 11:39:53 +03:00
parent e4acefc06e
commit 8af97930bc
9 changed files with 31 additions and 4 deletions

View File

@ -48,7 +48,13 @@
"maximumError": "4kb"
}
],
"outputHashing": "all"
"outputHashing": "all",
"fileReplacements": [
{
"replace": "projects/environments/environment.ts",
"with": "projects/app-a/environments/environment.ts"
}
]
},
"development": {
"buildOptimizer": false,
@ -145,7 +151,13 @@
"maximumError": "4kb"
}
],
"outputHashing": "all"
"outputHashing": "all",
"fileReplacements": [
{
"replace": "projects/environments/environment.ts",
"with": "projects/app-b/environments/environment.ts"
}
]
},
"development": {
"buildOptimizer": false,

View File

@ -0,0 +1,3 @@
export const environment = {
test:"EnvTestA"
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,8 +1,10 @@
/* You can add global styles to this file, and also import other style files */
body{
background-color: black;
font-family: 'Courier New', Courier, monospace;
h1{
color: darkslateblue;
font-family: 'Courier New', Courier, monospace;
}
h3{color: gray;}
}

View File

@ -0,0 +1,3 @@
export const environment = {
test:"EnvTestB"
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1 +1,3 @@
<h1>Common Project</h1>
<h1>Common Project</h1>
<h3>{{env}}</h3>
<img src="assets/start.png" alt="">

View File

@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { environment } from 'projects/environments/environment';
@Component({
selector: 'app-root',
@ -7,4 +8,5 @@ import { Component } from '@angular/core';
})
export class AppComponent {
title = 'app-a';
env = environment.test
}

View File

@ -0,0 +1,3 @@
export const environment = {
test:"EnvDevTest"
};