Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] in multiple configs runs just first config, but should all #2737

Closed
MaxmaxmaximusAWS opened this issue Sep 13, 2020 · 1 comment
Closed

Comments

@MaxmaxmaximusAWS
Copy link

MaxmaxmaximusAWS commented Sep 13, 2020

webpack.config.js:

const path = require('path')


module.exports = [
  {
    entry: path.resolve(__dirname, './app_one/index.js'),
    output: {
      path: path.resolve(__dirname, './build/app_one/')
    },
    devServer: {
      contentBase: path.resolve(__dirname, './build/app_one/'),
      port: 81,
    }
  },

  {
    entry: path.resolve(__dirname, './app_two/index.js'),
    output: {
      path: path.resolve(__dirname, './build/app_two/')
    },
    devServer: {
      contentBase: path.resolve(__dirname, './build/app_two/'),
      port: 82,
    }
  },
]

bash:

$ webpack-dev-server

It run just app_one on 81 port, app_two not runned, is bug

@MaxmaxmaximusAWS MaxmaxmaximusAWS changed the title [BUG] in multiple configs run just first config [BUG] in multiple configs runs just first config Sep 13, 2020
@MaxmaxmaximusAWS MaxmaxmaximusAWS changed the title [BUG] in multiple configs runs just first config [BUG] in multiple configs runs just first config, but everyone should Sep 13, 2020
@MaxmaxmaximusAWS MaxmaxmaximusAWS changed the title [BUG] in multiple configs runs just first config, but everyone should [BUG] in multiple configs runs just first config, but should all Sep 13, 2020
@alexander-akait
Copy link
Member

Duplicate of #2355, same problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants