`npm run build`, how to remove webpack source map ?
See original GitHub issuenpm run build
, how to remove webpack source map ?
no need source map for build !
{
"main.css": "static/css/main.a58d74b1.css",
"main.css.map": "static/css/main.a58d74b1.css.map",
"main.js": "static/js/main.47392501.js",
"main.js.map": "static/js/main.47392501.js.map"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
How to disable source maps for React JS Application
How to disable source maps for React JS Application · Add your webpack.config. · 1 · What did you use to generate the...
Read more >delete-source-maps-webpack-plugin - npm
删除webpack打包后的sourcemap文件. Latest version: 1.0.5, ... Start using delete-source-maps-webpack-plugin in your project by running `npm i ...
Read more >webpack-delete-sourcemaps-plugin - npm package - Snyk
Webpack plugin to delete sourcemaps files at the end of the build For more information about how to use this package see README....
Read more >source-map-loader - webpack
The source-map-loader will extract from any JavaScript file, including those in the node_modules directory. Be mindful in setting include and exclude rule ...
Read more >Source Maps - SurviveJS
To see how webpack handles source maps, see source-map-visualization by the ... If you build the project now ( npm run build ),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We can now disable sourcemap with :
GENERATE_SOURCEMAP=false
Simply remove the .map files from the build directory.
As this has been answered many times before, I’ll close this issue.