Skip to content

Add option to disable autoprefixer in CLI #584

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

Merged
merged 2 commits into from
Nov 5, 2018
Merged

Conversation

adamwathan
Copy link
Member

There are a lot of situations where people are using tailwind build to avoid ejecting from things like create-react-app or whatever the hell Angular people use. Those tools already run autoprefixer though, so running it twice just slows things down for no reason.

This PR adds a --no-autoprefixer option to the build command so people can opt-out of it for better performance if they are already prefixing their CSS in a later step.

@MattStypa: Would appreciate your eyes on this if you have a minute 👍

@MattStypa
Copy link
Contributor

@adamwathan Looks good. 👍

At some point in the near feature, I want to take a stab at refactoring the build command. The argument based configuration approach for build functions is unsustainable.

@adamwathan
Copy link
Member Author

The argument based configuration approach for build functions is unsustainable.

Yep agreed 👍 Cool thanks!

@adamwathan adamwathan merged commit 2ee98f2 into master Nov 5, 2018
@adamwathan adamwathan deleted the autoprefix-optional branch November 5, 2018 13:53
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.

2 participants