diff --git a/shared/js/workers/pow/index.ts b/shared/js/workers/pow/index.ts index 4b3dfc8b..2838ec19 100644 --- a/shared/js/workers/pow/index.ts +++ b/shared/js/workers/pow/index.ts @@ -1,3 +1,6 @@ +// @ts-ignore +__webpack_public_path__ = './'; + declare function postMessage(message: any): void; const prefix = "[POWWorker] "; diff --git a/web/app/audio-lib/worker/index.ts b/web/app/audio-lib/worker/index.ts index 71658b8a..f65c76e2 100644 --- a/web/app/audio-lib/worker/index.ts +++ b/web/app/audio-lib/worker/index.ts @@ -1,3 +1,6 @@ +// @ts-ignore +__webpack_public_path__ = './'; + import {WorkerHandler} from "tc-shared/workers/WorkerHandler"; import { AWCommand, diff --git a/webpack.config.ts b/webpack.config.ts index 52a2bba1..87ef945a 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -240,7 +240,7 @@ export const config = async (target: "web" | "client"): Promise = filename: isDevelopment ? "[name].[contenthash].js" : "[contenthash].js", chunkFilename: isDevelopment ? "[name].[contenthash].js" : "[contenthash].js", path: path.resolve(__dirname, 'dist'), - publicPath: "/js/" + publicPath: "js/" }, performance: { hints: false