Support the ongoing development of Laravel.io →
posted 8 years ago
Packages

In Laravel 5.4, in webpack.mix.js, I have this:

mix.js( ['resources/assets/js/app.js', 'resources/assets/js/test.js'], 'public/js/app.js') .extract(["axios", "bootstrap-sass", "jquery", "laravel-mix", "lodash", "vue"])

which compiles app.js and test.js into public/js/app.js

and takes the vendor files from node_modules and compiles them into vendor.js (.extract).

I want to get a file from here: https://github.com/winmarkltd/BootstrapFormHelpers and insert it into the vendor.js file. It installs easily by npm but there is no index.js file included in that package, so it is not compiling into app.js or vendor.js. So I need to grab a single file just for vendor.js.

I'm wondering how I can add a single file to the vendor.js file?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.