I would like to use the webpack-dev-server to host multiple entry points at one PORT. My current config is below:
entry: {
//Application specific code.
main: [
`webpack-dev-server/client?http://${config.HOST}:${config.PORT}`,
'webpack/hot/only-dev-server',
'./app/base.js',
'./app/main.js'
],
login: [
`webpack-dev-server/client?http://${config.HOST}:${config.PORT}`,
'webpack/hot/only-dev-server',
'./app/base.js',
'./app/login.js'
],
},
output: {
path: assetsPath,
publicPath: `http://${config.HOST}:${config.PORT}/public/dist/`,
chunkFilename: "[name].js",
filename: '[name].js',
},
But seems like it doesn't work for me right now. Any help?