Copyright in app.js, vendor.js, polyfill.js

I need to add copyright text in autogenerated files (like app.js, vendor.js, polyfill.js).

How can I add.

Can we inject from webpack.config.js. If so how?

I guess what you’re looking for maybe something like this https://webpack.js.org/plugins/banner-plugin/

Cool. Thanks you so much.