Skip to content

Conversation

@ericlbarnes
Copy link
Contributor

In step 2 of installation you say:

We recommend creating a tailwind.js file in your project's root.

Then in Step 4:

./node_modules/.bin/tailwind build styles.css [-c ./config.js] [-o ./output.css]

Why config.js and not tailwind.js that you recommended earlier? This PR I just tried to unify the docs. 😄

@reinink
Copy link
Member

reinink commented Nov 10, 2017

Hey there Eric! So, the reason it's different here is because when you use tailwind build it will name the config file tailwind.js by default. The -c option allows you to change this to something else. This is why we had something different here, to illustrate that you can use a non-default value. But maybe that's confusing and it still makes sense to show the default value?

@adamwathan
Copy link
Member

Actually without the -c option it uses no config file, so it probably makes sense to be consistent with the name. The reason for using config there though was to make it clear that the argument is your config file, but maybe that’s still clear even without the word config there?

@reinink
Copy link
Member

reinink commented Nov 10, 2017

Right! I'm getting confused with init. I think originally we actually had your-tailwind-config.js here, but I shortened it to make it fit in the docs without scrolling:

image

I'd still like to keep it from scrolling, but also agree that using tailwind.js is better. I'll merge this in.

@reinink reinink merged commit 3ad7fd9 into tailwindlabs:master Nov 10, 2017
DCzajkowski pushed a commit to DCzajkowski/tailwindcss that referenced this pull request Jul 23, 2019
Renaming duplicated/already declared const
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants