dobromir-hristov / tailwindcss-export-config

Export Tailwindcss config options to SASS, SCSS, LESS, and Stylus variables.
59 stars 14 forks source link

Not enough arguments following: flat #61

Open CreateSean opened 1 year ago

CreateSean commented 1 year ago

I'm running this script in NPM

    "tw-whitelist": "tailwindcss-export-config --config=./tailwind.config.js --destination=./templates/_tw-config/whitelist --format=scss --quoted-keys=true --onlyIncludeKeys=colors --prefix=bg --flat",

and get the following error: Not enough arguments following: flat

when I look at the logs I see this:

32 error command C:\Windows\system32\cmd.exe /d /s /c tailwindcss-export-config --config=./tailwind.config.js --destination=./templates/_tw-config/whitelist --format=scss --quoted-keys=true --onlyIncludeKeys=colors --prefix=bg --flat
33 verbose exit 1

However if I remove the --flat flag everything runs as expected.

andrewgioia commented 1 month ago

@CreateSean having the same issue, if you change it to --flat=true it should work as expected. Readme may need to be updated.