Skip to content

Commit 5b79e62

Browse files
authored
Improved incompatible browser detection (#21)
* Moved fonts to data URLs to prevent font flicker. * Improve incompatible browser checking and related feedback.
1 parent a519c5e commit 5b79e62

File tree

11 files changed

+453
-65
lines changed

11 files changed

+453
-65
lines changed

.eslintrc.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,28 @@
132132
"overrides": [
133133
{
134134
"files": ["*.js", "*.cjs"],
135+
"parser": "babel-eslint",
136+
"parserOptions": {
137+
"ecmaVersion": 2018,
138+
"sourceType": "module"
139+
},
135140
"rules": {
136-
"@typescript-eslint/explicit-function-return-type": "off"
141+
"@typescript-eslint/consistent-type-assertions": "off",
142+
"@typescript-eslint/explicit-function-return-type": "off",
143+
"@typescript-eslint/indent": "off",
144+
"@typescript-eslint/no-unused-vars": "off",
145+
"indent": [
146+
"error",
147+
2,
148+
{
149+
"ArrayExpression": "first",
150+
"FunctionDeclaration": { "parameters": "off" },
151+
"FunctionExpression": { "parameters": "off" },
152+
"ignoreComments": true,
153+
"ObjectExpression": "first",
154+
"SwitchCase": 1
155+
}
156+
]
137157
}
138158
}
139159
]

angular.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
},
3636
"architect": {
3737
"build": {
38-
"builder": "@angular-devkit/build-angular:browser",
38+
"builder": "@angular-builders/custom-webpack:browser",
3939
"options": {
40+
"customWebpackConfig": {
41+
"path": "./webpack.config.js"
42+
},
4043
"localize": true,
4144
"outputPath": "dist/prague-clock",
4245
"index": "src/index.html",
@@ -124,13 +127,13 @@
124127
"defaultConfiguration": "development"
125128
},
126129
"extract-i18n": {
127-
"builder": "@angular-devkit/build-angular:extract-i18n",
130+
"builder": "@angular-builders/custom-webpack:extract-i18n",
128131
"options": {
129132
"browserTarget": "prague-clock:build"
130133
}
131134
},
132135
"test": {
133-
"builder": "@angular-devkit/build-angular:karma",
136+
"builder": "@angular-builders/custom-webpack:karma",
134137
"options": {
135138
"main": "src/test.ts",
136139
"polyfills": "src/polyfills.ts",

0 commit comments

Comments
 (0)