Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 829 - configuration regex options are not being parsed as RegExp instances #832

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbabic
Copy link

@bbabic bbabic commented Sep 22, 2020

As discussed in Issue 829 configuration file options which holds regex values were not treated as RegExp instances.
This is just a quick-fix for mangle options, proper fix needs to be able to handle any regex option.

@fabiosantoscode
Copy link
Collaborator

Hey there :)

I had a look around, and it seems like only three options are missing:

  • keep_fnames and keep_classnames compress options
  • unsafe_methods compress options

Compress options are treated in the Compressor constructor in lib/compress

I would really appreciate it if you also formatted those options to make this PR more complete.

Thanks in advance :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants