@MUSHOOD - I'm thinking compiling vendor.js and jquery code separately (so that they don't depend on manifest.js).
mix.js('resources/js/vendor.js', 'public/js')
.js('resources/js/home.js', 'public/js');
Then:
mix.js('resources/js/order-index.js', 'public/js')
.js('resources/js/another-page.js', 'public/js')
...
.extract(['vue'], 'public/js/vue');
The output will be:
/js/manifest.js
/js/vue.js
/js/order-index.js
/js/another-page.js
...
At last, include what I need on specific pages:
@section('script')
<script src="/js/manifest.js"></script>
<script src="/js/vue.js"></script>
<script src="/js/order-index.js"></script>
@endsection
Pretty ugly... but it's the only solution I can think of right now