mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-23 00:39:47 +01:00
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:
@@ -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}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user