added two apps, and better implementation

This commit is contained in:
David Meincke
2022-03-22 18:20:26 +01:00
parent bb44e0e92d
commit 33b3f2e5cc
47 changed files with 486 additions and 151 deletions
+22
View File
@@ -0,0 +1,22 @@
const WebpackDevServer = require("webpack-dev-server");
const webpack = require("webpack");
const codeeditorConfig = require("./webpack.dev.js");
const outputframeConfig = require("./webpack.dev-outputframe.js");
const codeeditorCompiler = webpack(codeeditorConfig);
const outputframeCompiler = webpack(outputframeConfig);
const server1 = new WebpackDevServer(codeeditorCompiler, {
hot: true,
historyApiFallback: true
})
const server2 = new WebpackDevServer(outputframeCompiler, {
hot: true,
historyApiFallback: true
})
server1.listen(8020, "localhost", function() { console.log("server 1 rdy"); })
server2.listen(8021, "localhost", function() { console.log("server 2 rdy"); })