-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Minified PHP files issue #3893
Comments
I have found another instance of this that is slightly different. A template for a third party module we've been working with has something along the lines of this in javascript in a template file:
When magento minifies this it becomes
|
This issue is related with my issue #4490. |
Hi @chris-brabender , Please retest you own. I'm going to close issue Fill free to comment here some issues still exist. |
[EngCom] Public Pull Requests - GraphQL
When magento 2 minifies PHP files into the view_preprocessed folder it seems to have a bit of a bug when it comes to comments.
If a PHP file contains a commented line starting with # or // it comments out all subsequent lines.
EG:
Gets minified into this:
Which effectively comments out everything after the commented line.
Is there a requirement to minify PHP blocks in these files?
The text was updated successfully, but these errors were encountered: