module.exports = {
  entry: './src/app.js',
  output: {
    path: './dist',
    filename: 'build.js'
  }
}

module.exports = {
  entry: './src/app.js',
  output: {
    path: './dist',
    filename: 'build.js'
  },
  devtool: 'source-map'
}

Add support for source maps
Add support for source maps

This allows you to add break points in the JavaScript console and debug code.
