We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*.php
1 parent 7a762c8 commit 89d5b6eCopy full SHA for 89d5b6e
src/Command/Compile.php
@@ -112,7 +112,12 @@ protected function addFile(string $file)
112
$fullpath = $this->fullpath($file);
113
114
$this->info('+ ' . $file, 'grey');
115
- $this->builder->addFile($fullpath, $file);
+
116
+ // Only minify pure PHP source files, other files such as
117
+ // code templates for instance, should be left as-is
118
+ $minify = (pathinfo($file, PATHINFO_EXTENSION) === 'php');
119
120
+ $this->builder->addFile($fullpath, $file, $minify);
121
}
122
123
/**
0 commit comments