Step 4: Tailwind 0.6.2 and file size improvements #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tailwind 0.6.2 has been released and comes with a new feature:
shadowLookup
.From the release notes:
These updates fix the core problem I was facing in this demo project. The
@tailwind utilities;
had to be added at the start of every<style>
block in every Vue component. This caused the final JavaScript Bundle size to grow with every newly added component.With Tailwind 0.6.2 this problem goes away. The previous minified Bundle clocked in at 1.9MB. The new minified Bundle is only 99kb in size. That's 95% smaller!
Another cool benefit of this approach: You don't need purgecss or any other tool that removes unused CSS.
So with the setup of this repo and the article I've written back in February, I think you start leveraging the power of Tailwind CSS in your Vue.js project (I certainly will).
It also closes #5.