sorrycc / roadhog

🐷 Cli tool for creating react apps, configurable version of create-react-app.
2.72k stars 341 forks source link

webpackConfig.devServer.overlay not working #762

Open suptwo opened 6 years ago

suptwo commented 6 years ago

in webpack.config.js

webpackConfig.module.rules.push(
    {
      test: /\.js$/,
      exclude: /node_modules/,
      loaders: ['eslint-loader']
    }
  )
webpackConfig.devServer = webpackConfig.devServer || {};
webpackConfig.devServer.overlay = {
    errors: true,
    warnings: true,
 }

Not seeing error overlay but The command window has a hint

image

liujian10 commented 6 years ago

应该是roadhog的devServer配置覆盖了自定义的devServer配置