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

make the parser mode configurable (fastest, smallest, standard) #11

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

Conversation

mbretter
Copy link

WyriHaximus/HtmlCompress comes with several presets, currently the smallest scheme is used.
This can cause problems with inline javascript, inline js is compressed too and some of the minifiers are producing invalid js code.
The fastest/standard modes are more reliable.

@fromthecove
Copy link

This is a fantastic idea. I was about to implement something similar but thought I'd check to see if someone already had a pull request for this exact configuration option.

@fromthecove
Copy link

Another option might be to just make the $parser property protected instead of private. That way anyone could easily extend Extension and set $parser using one of the other Factory static methods.

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