Writing a small blog and trying to use Webpack, I came to this problem that am not sure how to solve, or if this means WP isn't ideal for this project.
The blog has many pages generated on the fly (mostly the blogposts), all of them automatically include a JS page that is specific for the page, example:
post1.html
<script src='post1.js'></script>
post2.html
<script src='post2.js'></script>
Hence I don't have a single entry.js to convert to bundle.js. Instead, I need webpack to be applied to all the files. Is the only way to automatize this process to add an entry point for each blog post?