To enable source maps for webpack in gulp, add the attribute:
config.devtool = ‘source-map’
into the webpack config file. This will give accurate line numbers for javascript errors from the source map, instead of the line number of the webpack generated files.