It depends on how you decide to do it. If it is with vanilla Javascript (node), check out FS operations. On the other hand, for Webpack check out their documentation on writing a plugin.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was looking for an approach without using Gulp. Do you think this can be done just by Webpack inside
next.config.js
?Yes, you can even do it with vanilla Javascript!
How? (:
It depends on how you decide to do it. If it is with vanilla Javascript (node), check out FS operations. On the other hand, for Webpack check out their documentation on writing a plugin.