I am using caffeinated/modules (https://github.com/caffeinated/modules) and have a couple of modules in my laravel instance.
Modules/User
Modules/Guest
Modules/Admin
Each module is a vue app, has its own resources, assets, components etc
When using mix, i can put all the files I need to be compiled from all modules.
When I run npm run prod, all files from all modules will be compiled and versioned.
However, when deploying to production and compiling, I only want to compile from one module.
Lets say that I made changes to Modules/User - I only want to compile assets from the User module.
Other modules should not recompile files as nothing changed for them. I am also using versioning in mix
Is this possible with mix, or any other ideas on how to accomplish this ?
Found that mix will generate the same version number as long as the file is not touched.
So I can put all module compile task and run the compile task
If only Modules/User changed, mix will generate a new version for only files in this module.
Other module files will retain the previous version, which is great and solves my problem.