Update to webpack v5 (#1848)

Update webpack in the following components to version 5:

ui-styles (StyleGuide)
ui-components (Storybook)
ui-scripts (gradle run/build)
This change will also fix a circular dependency between ui-api and ui-components.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
This commit is contained in:
Sebastian Sdorra
2021-11-10 10:10:17 +01:00
committed by GitHub
parent f69d3a29a8
commit 2938074e1a
28 changed files with 1603 additions and 1049 deletions

View File

@@ -29,9 +29,9 @@ const webpackConfig = require("../webpack.config");
module.exports = () => {
const compiler = Webpack(webpackConfig);
const devServerConfig = webpackConfig[0].devServer;
const server = new WebpackDevServer(compiler, devServerConfig);
const server = new WebpackDevServer(devServerConfig, compiler);
server.listen(devServerConfig.port, "127.0.0.1", () => {
server.startCallback(() => {
console.log(`Starting server on http://localhost:${devServerConfig.port}`);
});