Ditch webpack-dev-middleware

This commit is contained in:
Cohee
2024-11-29 00:13:43 +02:00
parent b5c2ecdfcc
commit afccb8517a
5 changed files with 40 additions and 265 deletions

View File

@@ -627,10 +627,6 @@ const tavernUrl = new URL(
(':' + server_port),
);
function prepareFrontendBundle() {
return new Promise((resolve) => webpackMiddleware.waitUntilValid(resolve));
}
/**
* Tasks that need to be run before the server starts listening.
*/
@@ -682,7 +678,7 @@ const preSetupTasks = async function () {
initRequestProxy({ enabled: proxyEnabled, url: proxyUrl, bypass: proxyBypass });
// Wait for frontend libs to compile
await prepareFrontendBundle();
await webpackMiddleware.runWebpackCompiler();
};
/**