Seeking assistance with a website project I am currently working on. The project consists of 7 HTML documents, 3 stylesheets, 8 JavaScript files (including jQuery.min.js and some additional jQuery plugins), and various images. I am looking to bundle and minify these files to optimize the performance of the website. Ideally, I would like to have just one CSS file and one JS file, or possibly merge styles within the JS file.
Currently, all dependencies are properly linked in the HTML documents and the website functions as expected. However, I am unsure how to set up module.exports and requires correctly. Could you provide me with a step-by-step guide on how to do this in the right way?
Thank you in advance for your help.
PS. I am writing in ES5 and not using Babel.