Skip to content

Don't remove debug statement in minified  #35

@kickinbahk

Description

@kickinbahk

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions