Skip to content

Commit

Permalink
Improved incompatible browser detection (#21)
Browse files Browse the repository at this point in the history
* Moved fonts to data URLs to prevent font flicker.
* Improve incompatible browser checking and related feedback.
  • Loading branch information
kshetline authored May 18, 2022
1 parent a519c5e commit 5b79e62
Show file tree
Hide file tree
Showing 11 changed files with 453 additions and 65 deletions.
22 changes: 21 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,28 @@
"overrides": [
{
"files": ["*.js", "*.cjs"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unused-vars": "off",
"indent": [
"error",
2,
{
"ArrayExpression": "first",
"FunctionDeclaration": { "parameters": "off" },
"FunctionExpression": { "parameters": "off" },
"ignoreComments": true,
"ObjectExpression": "first",
"SwitchCase": 1
}
]
}
}
]
Expand Down
9 changes: 6 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./webpack.config.js"
},
"localize": true,
"outputPath": "dist/prague-clock",
"index": "src/index.html",
Expand Down Expand Up @@ -124,13 +127,13 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular-builders/custom-webpack:extract-i18n",
"options": {
"browserTarget": "prague-clock:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular-builders/custom-webpack:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
Expand Down
Loading

0 comments on commit 5b79e62

Please sign in to comment.