본문 바로가기
✘✘✘ 개발일기

[Webpack] Webpack dev server config

by PrettyLog 2022. 10. 10.

devServer

  • webpack-dev-server 관련한 설정
  • error, warning overlay
  • logging
  • hot
  • liveReload

// stats: 'minimal' | 'errors-only'
stats: {
  warnings: false,
}, // disable console.log
devServer: {
    client: {
    logging: 'info',
    overlay: {
      errors: false,
      warnings: false,
    },
  },
  open: false,
  historyApiFallback: true,
  static: './',
  hot: true,
  liveReload: true,
},
stats: 'errors-only',
devServer: {
  client: {
    logging: 'info',
    overlay: {
      errors: false,
      warnings: false,
    },
  },
  open: false,
  historyApiFallback: true,
  static: './',
  hot: true,
  liveReload: true,
},

Stats

  • quiet
  • noInfo

댓글