Skip to content

enclose option should be an array rather than string (CLI) #1072

@cuixiping

Description

@cuixiping

Now we must use enclose option like this (CLI):
uglifyjs foo.js -c --enclose window:window --enclose document:document

It's better to use enclose option like this (CLI):
uglifyjs foo.js -c --enclose window:window document:document

Or like compress option style (CLI):
uglifyjs foo.js -c --enclose window=window,document=document

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions