Requirement
- My requirement is that before publishing the front-end project 'src' to tomcat server, I want to use some tool to md5 it, that is, the file names of all static resources plus the hash values calculated based on their contents, so that when my static resource files are updated, I can solve the problem that the client cache is not updated in time.
Try
- I tried to bundle my project according to the webpack officer guides and some blog tutorials, but they all need an entry file for index.js, but my project is built in a very simple structure that I don't have an index.js file at all.(the only file which maybe like a 'entry' file is the index.html for the server to identify)
My project structure here, click me please - The index.js is not in my origin project, it is just a temp file after my webpack bundle practice.
So how could I use webpack to bundle my project, or even just don't need webpack at all, as long as I can achieve my requirement?