I think you could create an identifier loader that filters the source maps for these specific files.
module.exports = function(source, map) {
this.callback(null, source)
};
Then in the configuration of your web package:
module: {
loaders: [
include: [],
loader: 'remove-sourcemap',
],
},
You can also manually apply SourceMapDevToolPlugininstead of the configuration parameter devtool. The plugin supports asset matching in the same way as boot loaders.
source
share