File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,14 @@ public function obfuscate(array $options = []): array
6565 $ outputDir = isset ($ options ['destination_override ' ])
6666 ? $ this ->pathResolver ->resolve ($ options ['destination_override ' ])
6767 : $ this ->pathResolver ->resolve ($ this ->config ['output_dir ' ]);
68- $ this ->prepareOutputDirectory ($ outputDir );
6968
70- // If production-ready mode, copy entire project first
69+ // If production-ready mode, copy entire project first (before preparing output dir)
7170 if ($ options ['production_ready ' ] ?? false ) {
7271 $ this ->createProductionBundle ($ outputDir , $ options );
7372 }
7473
74+ $ this ->prepareOutputDirectory ($ outputDir );
75+
7576 // Process files
7677 $ stats = $ this ->processFiles ($ files , $ outputDir , $ options );
7778
You can’t perform that action at this time.
0 commit comments