Skip to content

Commit 45d39bf

Browse files
authored
Merge pull request #3597 from IgniteUI/enable-ssr
feat(ssr): adding ssr to all projects
2 parents 77b80f4 + ac716eb commit 45d39bf

File tree

45 files changed

+3915
-2811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3915
-2811
lines changed

angular.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"index": "src/index.html",
1919
"tsConfig": "src/tsconfig.app.json",
2020
"polyfills": [
21-
"zone.js",
22-
"hammerjs"
21+
"zone.js",
22+
"hammerjs"
2323
],
2424
"assets": [
2525
"src/assets",
@@ -35,9 +35,16 @@
3535
"sourceMap": true,
3636
"progress": true,
3737
"stylePreprocessorOptions": {
38-
"includePaths": ["node_modules"]
38+
"includePaths": [
39+
"node_modules"
40+
]
3941
},
40-
"browser": "src/main.ts"
42+
"browser": "src/main.ts",
43+
"server": "src/main.server.ts",
44+
"outputMode": "static",
45+
"ssr": {
46+
"entry": "src/server.ts"
47+
}
4148
},
4249
"configurations": {
4350
"production": {
@@ -152,10 +159,17 @@
152159
"optimization": false,
153160
"namedChunks": true,
154161
"stylePreprocessorOptions": {
155-
"includePaths": ["node_modules"]
162+
"includePaths": [
163+
"node_modules"
164+
]
156165
},
157166
"preserveSymlinks": true,
158-
"browser": "projects/app-lob/src/main.ts"
167+
"browser": "projects/app-lob/src/main.ts",
168+
"server": "projects/app-lob/src/main.server.ts",
169+
"outputMode": "static",
170+
"ssr": {
171+
"entry": "projects/app-lob/src/server.ts"
172+
}
159173
},
160174
"configurations": {
161175
"production": {
@@ -276,9 +290,16 @@
276290
"optimization": false,
277291
"namedChunks": true,
278292
"stylePreprocessorOptions": {
279-
"includePaths": ["node_modules"]
293+
"includePaths": [
294+
"node_modules"
295+
]
280296
},
281-
"browser": "projects/app-crm/src/main.ts"
297+
"browser": "projects/app-crm/src/main.ts",
298+
"server": "projects/app-crm/src/main.server.ts",
299+
"outputMode": "static",
300+
"ssr": {
301+
"entry": "projects/app-crm/src/server.ts"
302+
}
282303
},
283304
"configurations": {
284305
"production": {

0 commit comments

Comments
 (0)