Using a relative webpack public path again

canary
WolverinDEV 2020-10-04 16:02:29 +02:00
parent 1996878f12
commit e073890849
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
// @ts-ignore
__webpack_public_path__ = './';
declare function postMessage(message: any): void;
const prefix = "[POWWorker] ";

View File

@ -1,3 +1,6 @@
// @ts-ignore
__webpack_public_path__ = './';
import {WorkerHandler} from "tc-shared/workers/WorkerHandler";
import {
AWCommand,

View File

@ -240,7 +240,7 @@ export const config = async (target: "web" | "client"): Promise<Configuration> =
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