Redirect output do minified.js file
file_put_contents("minified.js", $packer->pack());
This redirects the output to the minified.js file. If I change anything in the code, the output is not updated in minified.js. I must always delete the content and run it again.
How can I do this dynamically and make the content in minified.js always replaced automatically?