'How to create tailwind.config.js in custom directory instead of root folder with init command

I am using below npx command to generate tailwind.config.js file, it is creating this file in root directory by default. I want to create it in custom /config folder. Could anyone please guide me.

Also wanted to know what all changes are needed for tailwind to work with config residing in custom folder.

npx tailwindcss init

Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source