May 21, 2017
0
Level 18
Generating file in different project and branch with Mix
I have this structure in my develop enviroment:
-
Code/my-project-laravel-api(which is the one I deploy to production) -
Code/my-spa-vue-project(which is pointing to localhost:8000 js when i am in local)
Every time I want to push to production I have to move the compiled js to the laravel-api project and then push it.
I wanted to know if there is a way to configure webpack to save that file in the other project when i run npm run production
At the same time I have two production branches for the same project with slightly differences in api and js code.
Im a bit lost figuring out how automate this process.
Thnak you!
Please or to participate in this conversation.