Level 88
Extract only works for specific libraries. Check the documentation for an example: https://laravel.com/docs/7.x/mix#vendor-extraction
I'm using laravel-mix to extract vendors in webpack.mix.js using following:
mix
.js('app/resources/js/app.js', 'public/js')
.js('app/resources/js/auth.js', 'public/js')
.extract()
Now I want to page specific JS library: Leaflet.js for specific page only. I tried to using something like this:
mix
.js('app/resources/js/app.js', 'public/js')
.js('app/resources/js/auth.js', 'public/js')
.extract()
.js('app/resources/js/leaflet.js', 'public/js')
But all vendors including leaflet is included in vendor.js
How would I separate the specific library
Please or to participate in this conversation.