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/tailwind 2 compat build #356

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

iaacosta
Copy link
Contributor

@iaacosta iaacosta commented May 14, 2021

Context

TailwindCSS 2 is compatible with PostCSS 8, but Webpack 4 enforces PostCSS 7, which breaks the generated project if the user does not explicitly specify a lower version of Tailwind (e.g. 1.9.2) or fixes this issue.

Changes

Uses the special Tailwind 2 tailwindcss@npm:@tailwindcss/postcss7-compat package version that is compatible with postcss@^7 in generated projects. This change should not be needed anymore when @rails/webpacker@^6 is released and upgraded in Potassium.

Both postcss@^7 and autoprefixer@^9 aren't strictly needed as dependencies because they are also dependencies of @rails/[email protected] and are installed anyways. Nevertheless, I'd rather explicitly specify the dependencies of this compatibility build.

Changes might conflict with the ones done in #350 relative to TailwindCSS version.

Closes #349

@iaacosta iaacosta force-pushed the feat/upgrade-to-tailwind-to-compat-build branch 7 times, most recently from b6e75e9 to b725173 Compare May 15, 2021 19:47
@iaacosta iaacosta requested a review from gmq May 28, 2021 14:12
@iaacosta iaacosta force-pushed the feat/upgrade-to-tailwind-to-compat-build branch from b725173 to 8480f2c Compare May 28, 2021 19:27
@iaacosta iaacosta force-pushed the feat/upgrade-to-tailwind-to-compat-build branch from 8480f2c to 3abadab Compare June 1, 2021 21:53
@iaacosta iaacosta requested a review from gmq June 1, 2021 21:55
@iaacosta iaacosta merged commit 4a19aa6 into master Jun 2, 2021
@iaacosta iaacosta deleted the feat/upgrade-to-tailwind-to-compat-build branch June 2, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add postcss compatibility build for Tailwind V2
2 participants