Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.

Commit 29066c9

Browse files
committed
Add environment variable defaults
1 parent 061c6f0 commit 29066c9

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Diff for: src/environments/environment.dev.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// The file contents for the current environment will overwrite these during build.
2+
// The build system defaults to the dev environment which uses `environment.dev.ts`.
3+
// When you run a build command using a flag, (e.g. --prod) then `environment.ts` will be used instead.
4+
5+
export const ENV = {
6+
production: false
7+
};

Diff for: src/environments/environment.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const ENV = {
2+
production: true
3+
};

Diff for: tsconfig.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
"module": "es2015",
1212
"moduleResolution": "node",
1313
"sourceMap": true,
14-
"target": "es5"
14+
"target": "es5",
15+
"baseUrl": "./src",
16+
"paths": {
17+
"@app/env": [
18+
"environments/environment"
19+
]
20+
}
1521
},
1622
"include": [
1723
"src/**/*.ts"

0 commit comments

Comments
 (0)