dimanche 15 avril 2018

Custom Laravel Mix Recipes

Does anyone have any links on creating a custom laravel mix recipe. I have been searching and can't seem to find anything. Basically, I want to make a custom command such as npm run my-command and reference that in my webpack.mix.js file.

Is it currently possible to do this? If so, any links on how to do this would be appreciated.

To provide some context, I need to create 3 custom commands and reference them in my webpack.mix.js file sort of like if(env.inProduction) { //do this }. So if site == 'name-of-site' // do this.

Any help on my custom consideration would be very apprectiated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire