Incorporating Bootstrap 5, a HTML theme with a CSS bundle file, and separate JS bundle files (main JS bundle file and plugin bundle file) containing Bootstrap code base + custom template features into a Vue 3 project is my current objective. I aim to utilize the template across all of my Vue components.
While importing the CSS bundle file in the App component with a global scope was relatively simple for the CSS portion, I am now faced with the question of how to import the JS files. Would it be necessary to import them into each of my components? If so, what is the best method for accomplishing this? One potential solution could involve linking these files from index.html within the public folder, but this would exclude them from the production build and result in errors even during development. Is there a more straightforward approach to integrating these JS bundles into my SRC folder?