Skip to content

Minified PHP files issue #3893

Closed
Closed
@chris-brabender

Description

@chris-brabender

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:

# commented out line
$newVar = 'blah';

Gets minified into this:

# commented out line $newVar = 'blah';

Which effectively comments out everything after the commented line.

Is there a requirement to minify PHP blocks in these files?

Metadata

Metadata

Assignees

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