.pipe(uglify({ mangle: { reserved: ["jQuery", "$"], keep_fnames: true }, compress: {
drop_debugger: false,
} }))
Might be worth a broader thought of if we need to add a production vs development script to change which config settings are passed to uglify.
Uglify removes the debug statement when it is used
https://stackoverflow.com/questions/55671922/does-the-debugger-command-get-removed-after-a-minify
To have it work it needs the compress config option passed:
Might be worth a broader thought of if we need to add a production vs development script to change which config settings are passed to uglify.