Use ESBuild for frontend build.

Replacing webpack by ESBuild for client code compilation (as in the
official quickstart plugin).

So we can remove deprecated webpack dependencies.

Note: webpack is still used for ConverseJS build.
This may be removed soon.

Related to issue #122.
This commit is contained in:
John Livingston
2022-12-07 18:36:16 +01:00
parent 901d1e96ab
commit c178213e19
14 changed files with 677 additions and 7760 deletions

View File

@ -15,7 +15,11 @@ async function initSettingsRouter (options: RegisterServerOptions): Promise<Rout
const src = getBaseStaticRoute(options) + 'settings/settings.js'
res.status(200)
res.type('html')
res.send('<html><body><div>Loading...</div></body><script src="' + src + '"></script></html>')
res.send(`<html>
<body><div>Loading...</div></body>
<script type="module" src="${src}"></script>
</html>
`)
}
))