JS files when extending bootstrap with sass?

I’m extending bootstrap in a project with sass and npm by importing the main minified bootstrap scss file and running it through a build step (laravel mix). But I’m wondering what the best way to include all the required javascript files.

Since I’m using Laravel, I would like the javascript files to be in the public asset folder. Should I just copy the required files into the public/js folder or is there some way I can use Laravel mix to compile it into one file like public/js/main.js or something?

Well, I decided to just import the whole bootstrap library on the entry point javascript file (import 'bootstrap') and it works just fine. I don’t know if this is the best solution, but I think it works well enough.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.