[Vuejs]-Webpack.mix.js file separate module wise but not generating files in public folder

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

Leave a comment