question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`npm run build`, how to remove webpack source map ?

See original GitHub issue

npm 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:closed
  • Created 6 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

42reactions
bbeldamecommented, Jan 25, 2018

We can now disable sourcemap with : GENERATE_SOURCEMAP=false

25reactions
Timercommented, Jul 14, 2017

Simply remove the .map files from the build directory.

As this has been answered many times before, I’ll close this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found