0๐
โ
i find the way.
just create a script in package.json then create condition in webpack.mix.js file like this
package.json โ> "watch:xyz" : "cross-env WATCH_TARGET=yourTarget mix
watch"
webpack.mix.js -->
if(process.env.WATCH_TARGET == "yourTarget"){
// your webpack files
}
your directory/your project>> npm run watch:xy
Source:stackexchange.com