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.
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.
Well, actually disabling source maps is out of scope. Doing it just for packaged apps I think is https://github.com/electron-userland/electron-forge/issues/905.