Skip to content

Commit fc46c4a

Browse files
committed
switch back to angular-devkit/build-angular:browser
1 parent 84bc06b commit fc46c4a

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

projects/ngrx.io/angular.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,17 @@
1313
"projectType": "application",
1414
"architect": {
1515
"build": {
16-
"builder": "@angular-devkit/build-angular:application",
16+
"builder": "@angular-devkit/build-angular:browser",
1717
"options": {
18-
"outputPath": {
19-
"base": "dist/ngrx.io"
20-
},
18+
"outputPath": "dist/ngrx.io",
2119
"index": "src/index.html",
20+
"main": "src/main.ts",
2221
"tsConfig": "src/tsconfig.app.json",
2322
"outputHashing": "all",
2423
"sourceMap": true,
2524
"statsJson": true,
2625
"namedChunks": true,
27-
"polyfills": [
28-
"src/polyfills.ts"
29-
],
26+
"polyfills": "src/polyfills.ts",
3027
"assets": [
3128
"src/assets",
3229
"src/generated",
@@ -58,8 +55,7 @@
5855
"bundleName": "light-theme"
5956
}
6057
],
61-
"scripts": [],
62-
"browser": "src/main.ts"
58+
"scripts": []
6359
},
6460
"configurations": {
6561
"fast": {
@@ -72,7 +68,7 @@
7268
"with": "src/environments/environment.next.ts"
7369
}
7470
],
75-
"serviceWorker": "ngsw-config.json"
71+
"serviceWorker": true
7672
},
7773
"stable": {
7874
"fileReplacements": [
@@ -81,7 +77,7 @@
8177
"with": "src/environments/environment.stable.ts"
8278
}
8379
],
84-
"serviceWorker": "ngsw-config.json"
80+
"serviceWorker": true
8581
},
8682
"archive": {
8783
"fileReplacements": [
@@ -90,7 +86,7 @@
9086
"with": "src/environments/environment.archive.ts"
9187
}
9288
],
93-
"serviceWorker": "ngsw-config.json"
89+
"serviceWorker": true
9490
}
9591
},
9692
"defaultConfiguration": ""

projects/ngrx.io/scripts/build-404-page.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
22

33
// Imports
4-
const {readFileSync, writeFileSync} = require('fs');
5-
const {join, resolve} = require('path');
4+
const { readFileSync, writeFileSync } = require('fs');
5+
const { join, resolve } = require('path');
66

77
// Constants
88
const CI_PREVIEW = process.env.CI_PREVIEW;
@@ -26,8 +26,8 @@ function _main() {
2626

2727
if (dst404PageContent === srcIndexContent) {
2828
throw new Error(
29-
'Failed to generate \'404.html\'. ' +
30-
'The content of \'index.html\' does not match the expected pattern.');
29+
'Failed to generate \'404.html\'. ' +
30+
'The content of \'index.html\' does not match the expected pattern.');
3131
}
3232

3333
writeFileSync(dst404PagePath, dst404PageContent);

0 commit comments

Comments
 (0)