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.

How can I disable source maps for "package" command

See original GitHub issue
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Question

I would like to run the package command without generate source-maps. How can I disable it? I’m using the template generated by yarn create electron-app my-new-app --template=webpack.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
maleptcommented, Aug 20, 2019

This is a Webpack question, not an Electron Forge question. I would suggest looking at the Webpack documentation or asking in one of their support communities.

0reactions
Aditya-ds-1806commented, Jul 21, 2021

Thanks, will check it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable source maps for React JS Application
Go to /config/webpack.config.js directory and change the following line: const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';.
Read more >
How can I disable source maps for "package" command #1100
I would like to run the package command without generate source-maps. How can I disable it? I'm using the template generated by yarn...
Read more >
Disable Source Maps in GatsbyJs V2 for Production.
Quickly disable source maps in gatsbyjs for your production website.
Read more >
Gatsby: Disable source maps in production - Marc Nuri
Gatsby enables source map generation by default even in production mode, learn how to conditionally disable source maps for production ...
Read more >
source-map-explorer - npm
source -map-explorer. Analyze and debug JavaScript (or Sass or LESS) code bloat through source maps. The source map explorer determines which ...
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