This Laravel Mix plugin generates a JSON file containing your tailwind configuration.
Note: I've stumbled upon literally the same package but as mine added some options, I've decided to publish it anyway. You can find the package here
npm install --save-dev mix-export-tailwind-config
or
yarn add -D mix-export-tailwind-config
// webpack.config.js
require('mix-export-tailwind-config');
mix
.exportTailwindConfig(
'./tailwind.config.js',
'./storage/tailwind.config.json'
)