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.
Hi Jose, thanks for your post.
Do you have any idea how to implement it with Next.js?
I believe Next.js would work just fine with it. Give it a try and, please, let me know if you have any problems. Cheers 😎
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.