Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support zero-configuration #5

Merged
merged 1 commit into from
Nov 9, 2024
Merged

feat: support zero-configuration #5

merged 1 commit into from
Nov 9, 2024

Conversation

colinaaa
Copy link
Collaborator

@colinaaa colinaaa commented Nov 9, 2024

If no tailwind.config.js is provided, we will create a empty
configuration with only content that contains all the modules in the
module graph.

This should allow using this plugin with zero-configuration.

If no `tailwind.config.js` is provided, we will create a empty
configuration with only `content` that contains all the modules in the
module graph.

This should allow using this plugin with zero-configuration.
await writeFile(
configPath,
`\
existsSync(userConfig)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should throw an error when the userConfig is not the default path.

@colinaaa colinaaa merged commit aeaf6ae into main Nov 9, 2024
2 checks passed
@colinaaa colinaaa deleted the zero-config branch November 9, 2024 09:55
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.

1 participant