Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: get rid of webpack deprecation notice due to usage of `[hash]`

Abdullah Atta0e96769e93ce
diff --git a/apps/web/src/utils/compressor.ts b/apps/web/src/utils/compressor.ts
index 992d73f7f..8745cf450 100644
--- a/apps/web/src/utils/compressor.ts
+++ b/apps/web/src/utils/compressor.ts
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
-import Worker from "worker-loader?filename=static/workers/compressor.worker.[hash].js!./compressor.worker";
+import Worker from "worker-loader?filename=static/workers/compressor.worker.[contenthash].js!./compressor.worker";
import type { Compressor as CompressorWorker } from "./compressor.worker";
import { wrap, Remote } from "comlink";
import { isDesktop } from "./platform";
diff --git a/apps/web/src/utils/task-scheduler.ts b/apps/web/src/utils/task-scheduler.ts
index 45081df1b..cc5f7c721 100644
--- a/apps/web/src/utils/task-scheduler.ts
+++ b/apps/web/src/utils/task-scheduler.ts
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
-import Worker from "worker-loader?filename=static/workers/task-scheduler.worker.[hash].js!./task-scheduler.worker";
+import Worker from "worker-loader?filename=static/workers/task-scheduler.worker.[contenthash].js!./task-scheduler.worker";
import type {
TaskScheduler as TaskSchedulerType,
TaskSchedulerEvent