I have a similar question [here](https://craftcms.stackexchange.com/questions/39465/how-to-use-page-specific-javascript-using-the-starter-blog-template-using-asset).

But I was NOT able to ask the right question.

I'm practicing with [starter-blog template](https://github.com/craftcms/starter-blog).

How do I use page specific javascript using the `asset rev` plugin and `webpack`?
I don't want to manually add the js file inside the `assets` folder.

I want to write it inside the `src` folder and let webpack compile it to the `assets` folder.

Please help. Thank you.