...
Note |
---|
Valid source map files must meet the following requirements:
|
A common way for initial validation of the source map files is to open the application in a browser with the Developer mode and ensure the source code is properly retrieved and readable by the browser.
...
In your webpack.config.js
configuration file, set the devtool property to devtool: ‘source-map'
or devtool: ‘inline-source-map'
.
If you don’t want to change your project configuration, the corresponding webpack-cli commands will be --devtool 'source-map'
or --devtool 'inline-source-map'
.
More details are available as part of the official Webpack documentation: https://webpack.js.org/configuration/devtool/ or https://webpack.js.org/api/cli/#flags
...