build: remove service worker for now

This commit is contained in:
Johannes Millan 2024-06-15 13:27:43 +02:00
parent 5bcc3914fd
commit f2eaad8140
2 changed files with 9 additions and 18 deletions

View file

@ -27,9 +27,7 @@
"base": "dist"
},
"index": "src/index.html",
"polyfills": [
"src/polyfills.ts"
],
"polyfills": ["src/polyfills.ts"],
"tsConfig": "src/tsconfig.app.json",
"preserveSymlinks": true,
"assets": [
@ -43,9 +41,7 @@
"webWorkerTsConfig": "src/tsconfig.worker.json",
"browser": "src/main.ts",
"stylePreprocessorOptions": {
"includePaths": [
"."
]
"includePaths": ["."]
}
},
"configurations": {
@ -60,8 +56,7 @@
"extractLicenses": false,
"sourceMap": true,
"namedChunks": false,
"aot": false,
"serviceWorker": true
"aot": false
},
"production": {
"baseHref": "",
@ -89,8 +84,7 @@
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": false
"extractLicenses": true
},
"productionWeb": {
"budgets": [
@ -117,8 +111,7 @@
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": true
"extractLicenses": true
},
"stage": {
"baseHref": "",
@ -146,8 +139,7 @@
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": false
"extractLicenses": true
},
"stageWeb": {
"budgets": [
@ -174,8 +166,7 @@
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": true
"extractLicenses": true
}
}
},

View file

@ -1,4 +1,4 @@
import chrono from 'chrono-node';
import { casual } from 'chrono-node';
import { Task, TaskCopy } from './task.model';
import { getWorklogStr } from '../../util/get-work-log-str';
import { stringToMs } from '../../ui/duration/string-to-ms.pipe';
@ -13,7 +13,7 @@ const CH_TAG = '#';
const CH_DUE = '@';
const ALL_SPECIAL = `(\\${CH_PRO}|\\${CH_TAG}|\\${CH_DUE})`;
const customDateParser = chrono.casual.clone();
const customDateParser = casual.clone();
const SHORT_SYNTAX_PROJECT_REG_EX = new RegExp(`\\${CH_PRO}[^${ALL_SPECIAL}]+`, 'gi');
const SHORT_SYNTAX_TAGS_REG_EX = new RegExp(`\\${CH_TAG}[^${ALL_SPECIAL}|\\s]+`, 'gi');