run-servers.js

22 lines | 699 B Blame History Raw Download
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"); })