In order to see source maps in Chrome devtools I need to set
package.json - but when I do so, production builds with
--prod --release no longer work, giving this error:
Error: ENOENT: no such file or directory, open 'C:\MyPath\www\build\main.js.map' in undefined at line undefined, col undefined, pos undefined
I’ve tried adding
--generateSourceMap false to the command line for release builds, but it seems to be ignored.
So, it seems I can choose either source maps for debug builds, or working production builds… but not both!
Multiple issues have been opened about this in the Ionic app-scripts repo, and all closed with no resolution or explanation. Has anyone found a way around this problem?