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:
@ -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>
|
||||
`)
|
||||
}
|
||||
))
|
||||
|
||||
|
Reference in New Issue
Block a user