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

[1.x] Fix purging of CSS classes on production builds #249

Merged
merged 1 commit into from
Sep 21, 2020
Merged

[1.x] Fix purging of CSS classes on production builds #249

merged 1 commit into from
Sep 21, 2020

Conversation

johanvanhelden
Copy link
Contributor

@johanvanhelden johanvanhelden commented Sep 21, 2020

Problem:

If you do not publish the Jetstream views, those CSS classes will be purged from Tailwind on production builds, resulting in broken layouts.

Example:
Screenshot from 2020-09-21 18-19-32

Solution:

This PR fixes this issue and allows the Jetstream views to remain unpublished by simply including Jetstream in the list of folder PostCSS needs to search for classes.

Result:
Screenshot from 2020-09-21 18-24-22

Why:

Keeping, non-customized, views unpublished is what I prefer because it keeps my repository clean and I only publish files I actually need to modify.


Really fixes: #170

fix style issues


add trailing commas


keep vendor at the top
@johanvanhelden johanvanhelden changed the title Fix purging of classes on production builds in tailwind config [1.x] Fix purging of CSS classes on production builds Sep 21, 2020
@taylorotwell taylorotwell merged commit d8e8e41 into laravel:1.x Sep 21, 2020
@johanvanhelden johanvanhelden deleted the fix-purge-on-production branch September 21, 2020 18:16
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.

"npm run production" breaking layout
2 participants