How to combine dynamically created assets

CombineAssets - October CMS this class handles files that physically present in the file server, what if I want to combine PHP variables (that contain javascript) created on the fly in one single javascript file?
An example might be: I’m creating a dynamic js file made up of multiple outputs and want to combine and minize them into a physical file .js in storage to be reused without reprocessing it.


Hi @sandros87

You should just be able to pass this through \JSMin::minify($contents); to minify the contents.